<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>api-doc</title><style>@-webkit-keyframes scale-09-1{0%{transform:scale(.8)}to{transform:scale(1);opacity:1}}@keyframes scale-09-1{0%{transform:scale(.8)}to{transform:scale(1);opacity:1}}@-webkit-keyframes scale-1-09{0%{transform:scale(1)}to{transform:scale(.8)}}@keyframes scale-1-09{0%{transform:scale(1)}to{transform:scale(.8)}}@-webkit-keyframes scale-1{0%{transform:scale(0)}to{transform:scale(1);opacity:1}}@keyframes scale-1{0%{transform:scale(0)}to{transform:scale(1);opacity:1}}@-webkit-keyframes scale-0{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-0{0%{transform:scale(1)}to{transform:scale(0)}}@-webkit-keyframes scale-init{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes scale-init{0%{transform:scale(1)}to{transform:scale(0)}}.anim-design-enter-active{opacity:0;-webkit-animation:scale-09-1 .3s ease-out 1ms forwards,opacity1 .3s linear 1ms forwards;animation:scale-09-1 .3s ease-out 1ms forwards,opacity1 .3s linear 1ms forwards}.anim-design-leave-to{-webkit-animation:scale-1-09 .3s forwards,opacity0 .31s forwards;animation:scale-1-09 .3s forwards,opacity0 .31s forwards}.anim-scale-enter-active{opacity:0;-webkit-animation:scale-1 .3s 1ms forwards,opacity1 .3s 1ms forwards;animation:scale-1 .3s 1ms forwards,opacity1 .3s 1ms forwards}.anim-scale-leave-to{-webkit-animation:scale-0 .3s forwards,opacity0 .3s forwards;animation:scale-0 .3s forwards,opacity0 .3s forwards}@-webkit-keyframes top-in{0%{transform:translateY(-100%)}to{transform:translate(0)}}@keyframes top-in{0%{transform:translateY(-100%)}to{transform:translate(0)}}@-webkit-keyframes bottom-out{0%{transform:translate(0)}to{transform:translateY(100%)}}@keyframes bottom-out{0%{transform:translate(0)}to{transform:translateY(100%)}}.anim-topin-enter-active{-webkit-animation:top-in .35s forwards;animation:top-in .35s forwards}.anim-topin-leave-to{-webkit-animation:bottom-out .35s forwards;animation:bottom-out .35s forwards}@-webkit-keyframes opacity0{0%{opacity:1}to{opacity:.1}}@keyframes opacity0{0%{opacity:1}to{opacity:.1}}@-webkit-keyframes opacity1{0%{opacity:.2}to{opacity:1}}@keyframes opacity1{0%{opacity:.2}to{opacity:1}}.ajax-loading{-webkit-animation:rotate360 1s linear infinite;animation:rotate360 1s linear infinite}.anim-opacity-enter-active{-webkit-animation:opacity1 .3s forwards;animation:opacity1 .3s forwards}.anim-opacity-leave-to{-webkit-animation:opacity0 .2s ease-in forwards;animation:opacity0 .2s ease-in forwards}@-webkit-keyframes rotate360{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes rotate360{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}:root{--color-border:#dcdfe6;--color:#454644;--color-gray:hsla(0,0%,66.7%,0.67);--color-primary:#409eff;--color-back-title:#f5f7fa;--color-back-head:#e6eaf0;--color-shadow:hsla(0,0%,86.7%,0.6)}html{font-size:14px;color:var(--color)}body{padding:0;margin:0;overflow:hidden}div{box-sizing:border-box}.aux{color:#999;font-size:13px}.aux-gray{color:#aaa}.aux-mini{font-size:.7rem;color:var(--color-gray)}.modal{position:fixed;z-index:100;top:0;bottom:0;left:0;right:0;width:100%}.modal-view{position:relative;overflow:auto;height:auto;margin:auto;display:inline-block;left:50%;top:40%;transform:translate(-50%,-50%);box-shadow:0 0 3px;background-color:#fff;border:1px solid var(--color-border);border-radius:5px;box-shadow:2px 4px 25px hsla(0,0%,86.7%,.47),0 0 15px 1px#ddd7}.modal-view-head{padding:5px 10px;min-height:40px;border-bottom:1px solid hsla(0,0%,86.7%,.47)}.modal-view-body{padding:10px;position:relative}.modal-view-footer{padding:10px;border-top:1px solid hsla(0,0%,86.7%,.47)}.modal-view-footer .btn{margin:0 2px}.padding-10px{padding:10px}.flex-start{display:flex}.click{cursor:pointer;transition:opacity .15s}.click:hover{opacity:.8}.click:active{opacity:1}.underline{text-decoration:underline}.text-nowrap{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-center{text-align:center}.flex-center{justify-content:center}.flex-center,.flex-row-center{display:flex;align-items:center}.blod{font-weight:700}.margin-right-5px{margin-right:5px}.margin-right-10px{margin-right:10px}.margin-right-15px{margin-right:15px}.margin-right-20px{margin-right:20px}.textarea,button,input,select{background:transparent;border:1px solid transparent;border:1px solid var(--color-border);border-radius:3px;padding:2px 10px;margin:0;outline:none;box-sizing:border-box;min-height:30px;transition:.3s;font-size:.9rem;line-height:normal}.textarea{min-height:80px;font-family:initial}::-moz-placeholder{vertical-align:middle;color:var(--color-gray);line-height:normal}:-ms-input-placeholder{vertical-align:middle;color:var(--color-gray);line-height:normal}::placeholder{vertical-align:middle;color:var(--color-gray);line-height:normal}button{border-color:hsla(0,0%,86.7%,.6)}.input{flex-grow:1}.input input{width:100%!important}.btn-link{color:var(--color-primary);fill:var(--color-primary);transition:.3s;text-decoration:underline;margin:0 5px;cursor:pointer}.btn{cursor:pointer;outline:none;padding:5px 12px;border-radius:2px;margin:0 5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--color-border);fill:var(--color);transition:.2s;font-size:.8rem}.btn svg:first-child{margin-right:4px}.btn-text svg:first-child{margin-right:2px}.btn-border{cursor:pointer;outline:none;padding:2px 4px;margin:0 2px;border:1px solid rgba(145,106,48,.28);border-radius:3px}.btn-text{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:var(--color-primary);fill:var(--color-primary);padding:4px 2px;margin:0 5px;transition:.2s;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:.9rem}.btn-text-small{font-size:.85rem;margin:0 4px;padding:2px 2px}.btn-text:hover{opacity:.8}.btn-text:active{opacity:1}.btn-mini{font-size:.8rem}.max-width-200px{max-width:200px;flex-grow:0}.icon{width:1rem;height:1rem;fill:#777;fill:var(--color-primary);flex-shrink:0}.icon-small{width:.85rem;height:.85rem}.icon-mini{width:.75rem;height:.75rem}.icon-large{width:1.2rem;height:1.2rem}.icon-format{fill:rgba(145,84,15,.67)}.icon-desc{fill:rgba(160,149,151,.47)}.icon-desc-active{fill:rgba(145,84,15,.67)}.icon-tips{fill:rgba(160,149,151,.47);width:20px;height:20px}.icon-gray{fill:#bbb}.logo{fill:var(--color-primary)}.btn-format{padding:0 4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.flex-column,.flex-column-center{display:flex;flex-direction:column}.flex-column-center{align-items:center;justify-content:center}.flex-row{display:flex;flex-direction:row}.flex-row-between{display:flex;justify-content:space-between}.flex-row-around{display:flex;justify-content:space-around}.abs{position:absolute;left:0;top:0;right:0;bottom:0}.info{color:#2db7f5}.success{color:#19be6b}.warning{color:#f90}.error{color:#ed4014}.icon-larger{font-size:26px}.icon-large,.icon-normal{font-size:18px}.edit-div{max-width:100%;outline:none;cursor:text;white-space:pre-wrap;overflow-wrap:break-word;letter-spacing:.04em;padding:5px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.edit-div:before{content:attr(placeholder);color:var(--color-gray);font-size:.9rem}.step-head{flex-shrink:0;width:30px;justify-content:center;display:flex;position:relative}.step-head:before{content:"";position:absolute;left:50%;margin-left:-1px;top:0;bottom:-20px;border-left:1px dashed #ddd;z-index:-1}.step-body{flex-grow:1;overflow:auto}.tb{display:table;width:100%}.tb-colgroup{display:table-column-group}.tb-head{font-weight:700;display:table-header-group;background:#fff}.tb-body{display:table-row-group}.row{display:table-row}.cell{display:table-cell;box-shadow:0 0 1px #ddd;padding:10px;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror{font-family:Arial,Helvetica,sans-serif;letter-spacing:1px;word-spacing:1px;background:transparent;line-height:1.25;flex-grow:1}.CodeMirror-gutters{border-right:1px solid hsla(0,0%,86.7%,.87);background-color:hsla(0,0%,96.9%,.2)}.CodeMirror-hints{margin-left:10px;margin-top:5px;padding:10px 5px;z-index:200}.CodeMirror-hint{padding:2px}.cm-comment,.cm-def,.cm-keyword,.cm-number,.cm-operator,.cm-property,.cm-punctuation,.cm-variable{margin:0 2px}div.CodeMirror span.CodeMirror-matchingbracket{color:#1e91a5}.cm-s-default .cm-comment{color:#078b19;font-size:.85rem;font-style:italic}.CodeMirror-foldmarker{color:#aaa;text-shadow:0 0 6px #999}.cm-s-default .cm-operator{color:#5ad4d8}.cm-s-default .cm-keyword{color:#581ef7}.cm-s-default .cm-def{color:#332}.cm-property{color:#c120c7}.cm-variable{color:#d09426}.lint-error-icon{text-align:center;vertical-align:middle;display:inline-block;margin:0 4px;margin-top:-2px;font-weight:700}.lint-error{color:#fa1e01;font-size:.8em}.ide{height:100%;position:relative}.ide-head{background-color:var(--color-back-title);padding:5px 10px;border-bottom:1px solid hsla(0,0%,86.7%,.93);background-color:hsla(0,0%,96.9%,.2);min-height:30px;color:#aaa;font-size:.9rem}.ide-body{flex-grow:1;overflow:auto}.ide-textarea{display:none}.st0{fill:#f8f8ff}.st1{fill:#bac5f4}.st2{fill:#e1e6fb}.st3{fill:#fff}.st4{fill:#fa5f5d}.st5{fill:#fdbc4e}.st6{fill:#37cd58}.st7{fill:url(#SVGID_1_)}.st8{fill:url(#SVGID_2_)}.st9{fill:url(#SVGID_3_)}.st10{fill:url(#SVGID_4_)}.st11{fill:url(#SVGID_5_)}.st12{fill:#e9edfb}.st13{fill:url(#SVGID_6_);stroke:url(#SVGID_7_);stroke-width:5;stroke-miterlimit:10}.st14{fill:url(#SVGID_8_);stroke:url(#SVGID_9_);stroke-miterlimit:10}.st15{fill:url(#SVGID_10_);stroke:url(#SVGID_11_);stroke-miterlimit:10}.st16{fill:none;stroke:url(#SVGID_12_);stroke-width:5;stroke-miterlimit:10}.st17{fill:url(#SVGID_13_)}.st18{fill:url(#SVGID_14_)}.st19{stroke:url(#SVGID_15_);stroke-width:3;stroke-miterlimit:10}.st19,.st20{display:none;fill:none}.st20{stroke:url(#SVGID_16_);stroke-width:2;stroke-miterlimit:10}.st21{fill:url(#SVGID_17_);stroke:url(#SVGID_18_);stroke-miterlimit:10}.st22{fill:url(#SVGID_19_)}.st23{fill:url(#SVGID_20_);stroke:url(#SVGID_21_);stroke-miterlimit:10}.st24{fill:none;stroke:url(#SVGID_22_);stroke-width:2;stroke-miterlimit:10}.api-cache{position:relative;z-index:10;margin-right:10px}.doc-name-input{flex-grow:1;margin-right:5px}.doc-name-input input{width:100%}.cache-doc{position:absolute;top:0;left:0;min-width:200px;bottom:auto;background-color:#fff;border:1px solid var(--color-border);border-radius:5px;box-shadow:2px 4px 25px var(--color-border),0 0 15px 1px var(--color-border);max-width:360px;z-index:1;transform-origin:5px 5px}.cache-doc-head{padding:7px 10px;border-bottom:1px solid var(--color-border);background-color:var(--color-back-head);white-space:nowrap}.cache-doc-head .search{flex-grow:1;margin:0 10px;margin-right:5px;height:26px}.cache-doc-body{padding:10px;white-space:normal;word-break:break-all}.cache-doc-footer{padding:5px 10px;white-space:nowrap;border-top:1px solid var(--color-border)}.cache-doc-footer button{margin-left:5px;padding:5px 10px}.title{margin:0 10px}.time{margin-right:20px}.cache-list{position:relative}.cache-list .search{height:28px}.cache-list-footer{border-top:1px solid var(--color-border);text-align:right;padding:7px 15px}.doc-list-view{flex-grow:1;position:absolute;top:35px;left:0;background-color:#fff;border:1px solid var(--color-border);box-shadow:2px 4px 25px var(--color-border),0 0 15px 1px var(--color-border);border-radius:5px;max-width:360px;min-width:100%;overflow:auto}.doc-list{max-height:200px;overflow:auto;padding:5px 10px;margin:5px 1px}.doc-item{margin-bottom:2px;overflow:hidden;max-width:200px}.item-selected{color:var(--color-primary)}.nav-head{padding:10px 1%;padding-bottom:5px;z-index:2}.docs{z-index:1}.docs-base{flex-shrink:0;display:flex;flex-flow:wrap}.docs-local{overflow:auto;min-height:200px;padding-bottom:20px;position:relative}.doc-card{width:18%;height:110px;margin:10px 1%;border-radius:17px;box-shadow:1px 2px 4px -2px #777;position:relative;display:inline-block;cursor:pointer;transition:opacity .5s,transform .5s;transform-origin:0 50%}.list-anim-enter-active,.list-anim-leave-active,.list-anim-leave-to,.list-anim-move{pointer-events:none}.list-anim-enter,.list-anim-leave-to{opacity:0;transform:translateY(-50px) scale(0)}.doc-card:after,.list-anim-leave-active{position:absolute}.doc-card:after{content:"";left:10%;top:50%;right:5px;bottom:10px;border-radius:7px;transform:rotate(4deg);transition:.3s;z-index:-2;box-shadow:0 0 0 #777}.doc-card:hover:after{box-shadow:0 13px 10px #999}.doc-card-back{background:linear-gradient(145deg,#e2dddd,#d3e1e9 40%,#fcfcfa);border-radius:17px;overflow:hidden;z-index:-1}.doc-card-back:before{content:"";position:absolute;left:0;top:0;right:0;bottom:0;background-image:url(../img/logo.svg);background-position:50%;background-repeat:no-repeat;background-size:auto 60%;pointer-events:none;opacity:.5}.doc-card:hover .doc-card-remove{opacity:.8}.doc-card-head{flex-grow:0;flex-shrink:0;padding:5px 10px;border-bottom:1px solid rgba(217,228,223,.47)}.doc-card-body{flex-grow:1;padding:5px 10px}.doc-card-footer{flex-grow:0;flex-shrink:0;padding:5px 10px}.doc-card-remove{position:absolute;top:-10px;right:-10px;z-index:1;opacity:0;transition:.5s}.doc-card-add{background:linear-gradient(145deg,#49d7ee,#65c3df 40%,#209c9c);color:#fff}.doc-card-import{color:#fff;background:linear-gradient(145deg,#eddb5a,#f5c979 40%,#fd9e4d)}.doc-card-cache{color:#fff;background:linear-gradient(145deg,#d6e2ad,#c7de7d 35%,#abbd73)}.doc-card-self{color:#fff;background:linear-gradient(145deg,#80e984,#97da96 35%,#14a056)}.doc-card-ghost{cursor:not-allowed}.doc-card-ghost:after{opacity:.5;filter:grayscale(1)}.api-design-mini{height:auto!important;margin-bottom:0;border:none!important;box-shadow:unset!important}.api-design-mini-head{padding:2px 10px}.api-group .step:nth-child(2n) .api-design-mini{background-color:hsla(0,0%,96.9%,.33)}.api-design-mini .api-param{border-top:1px solid #ddd;height:200px}.api-design-mini-base{flex-grow:1;overflow:hidden}.api-design-mini-base .api-name{cursor:help}.api-design-mini .api-param{min-height:unset;margin-bottom:10px}.api-design-mini .api-method select,.api-design-mini .api-url{border:none;min-height:unset;color:inherit;padding:0 0;font-size:.9rem}.api-design-mini .api-method{font-weight:700;position:relative;margin-right:5px;justify-content:center}.api-design-mini .api-url::-moz-placeholder{color:inherit}.api-design-mini .api-url:-ms-input-placeholder{color:inherit}.api-design-mini .api-url::placeholder{color:inherit}.api-design-mini .api-method select{position:absolute;opacity:0;color:initial;font-size:1.2rem;z-index:1}.api-design-mini .api-url{width:100%}.action{align-items:flex-end;justify-content:flex-end}.api-design-mini .action{opacity:0;transition:.3s ease-out}.api-design-mini:hover .action{opacity:1;transition:.3s ease-in}.api-design{height:100%;width:100%;position:relative;overflow:auto}.action{flex-shrink:0}.api-theme-get{color:#08a76a}.api-theme-post{color:#208bc9}.api-theme-put{color:#c28d1a}.api-theme-head{color:#858315}.api-theme-delete{color:#a32708}.alias{font-size:.9rem;color:#a79532}.opacity-half{opacity:.5}.api-design-head{padding-right:10px}.api-design-body{overflow:auto;position:relative;flex-grow:1}.api-design-footer{padding:7px 10px;border-top:1px solid hsla(0,0%,86.7%,.47)}.api-base{padding:5px 10px}.api-base input{width:240px}.api-param{border:1px solid var(--color-border);border-radius:2px;margin:0 10px}.api-url{flex-grow:0;padding:5px 10px}.api-url-set{flex-grow:1}.method{flex-grow:0}.param-box{display:flex;overflow:auto;position:relative}.api-param{flex-grow:1;min-height:200px;height:80%}.api-debug{min-height:200px;flex-grow:0;z-index:1;overflow:auto;margin:10px}.api-debug .param-box{border:1px solid var(--color-border)}.api-debug-head{height:40px;padding-left:0;margin-top:5px;margin-bottom:1px}.param-box .view{width:50%}.param-box .view:nth-child(2){border-left:1px solid var(--color-border)}.view-head{flex-grow:0;flex-shrink:0;padding:4px 10px}.view .api-res,.view .textarea{flex-grow:1;overflow:auto}.view .api-res:focus,.view .textarea:focus{overflow:auto}.view-body{flex-grow:1;position:relative}.textarea-title{padding:5px}.loading{background-color:hsla(0,0%,93.3%,.67);color:var(--color-primary);fill:var(--color-primary);z-index:300;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;justify-content:center;align-items:center}.doc-base{z-index:20;transform-origin:40px 20px;background-color:hsla(0,0%,100%,.2);background:linear-gradient(-145deg,hsla(0,0%,93.3%,.47),hsla(0,0%,100%,.47) 40%,rgba(51,51,51,.07));overflow:auto;top:50px}.doc-base-view{border-radius:3px;background-color:hsla(0,0%,100%,.93);box-shadow:20px 40px 50px 2px hsla(0,0%,86.7%,.87),5px 5px 15px hsla(0,0%,86.7%,.87),0 0 1px 1px hsla(0,0%,86.7%,.87);min-height:300px;max-width:480px;margin-top:40px;margin-left:auto;margin-right:auto}.doc-base-head{border-bottom:1px solid var(--color-border);background-color:var(--color-back-head);padding:10px}.doc-base-body{flex-grow:1;padding:10px;padding-right:30px}.doc-base-footer{border-top:1px solid var(--color-border)}.doc-base-view .param-item{padding:10px}.doc-base-input{width:100%}.api-doc{z-index:2}.api-doc-view{top:40px;bottom:40px;overflow:auto;flex-grow:1;background-color:hsla(0,0%,100%,.93);border-radius:10px;border:1px solid rgba(85,85,85,.13);border-radius:5px;box-shadow:0 0 50px #ddd,5px 5px 15px #ddd;margin:auto}.api-design-box,.api-doc-view{background:linear-gradient(145deg,#e2dddd,#d3e1e9 40%,#fcfcfa)}.api-design-box{z-index:10;top:80px;margin:10px;box-shadow:5px 5px 15px #aaa;transform-origin:50% 0;border-radius:5px}.step-doc-action{padding:5px 0;background-color:hsla(0,0%,96.1%,.13);border-bottom:1px dashed hsla(0,0%,80%,.8)}.step-group .icon-gray{transition:.3s;fill:#999}.group-close{fill:#177ed3!important}.btn-add-doc{margin-left:-27px}.btn-add-doc .icon{margin-right:15px!important}.step-group .step-head{margin-top:2px}.step-api .step-head{margin-top:8px}.api-doc-head{transition:filter .2s}.api-doc-head,.doc-action{position:relative}.doc-action:before{content:"";position:absolute;left:30px;right:20px;bottom:50%;z-index:-1}.dashed{flex-grow:1;border-bottom:1px dashed hsla(0,0%,86.7%,.87)}.api-doc-base{padding-bottom:0;background-color:var(--color-back-head)}.doc-name{font-size:1.2rem;font-weight:700;min-width:60px;padding-left:10px}.doc-desc{font-size:.9rem;padding-left:10px;overflow:hidden}.doc-info{font-size:.7rem;color:var(--color-gray);padding:2px 0;padding-left:10px}.doc-info .btn-text{transform:translateY(-5px)}.api-list{position:relative;flex-grow:1;overflow:auto;padding-top:2px;margin-bottom:5px}.api-group{padding:0 0;margin-bottom:0}.api-doc-base .step-head:before{top:-25px}.api-doc-base .logo{margin-top:2px}.api-group .icon-small{margin-top:3px}.api-group-head{padding-bottom:5px}.group-name{font-weight:700;padding-left:10px}.list-item{margin-bottom:15px}.api-import{width:80%;max-width:480px;min-width:260px}.iframe-api-import{display:none;position:absolute}.api-import-info{height:200px;border:1px dashed rgba(145,106,48,.22);border-radius:5px;transition:.3s;overflow:hidden;padding:5px}.api-import-info .textarea{height:130px}.api-doc-info{overflow:auto;flex-grow:1;height:auto;max-height:100%}.btn-import{margin:10px;padding:3px 10px;border:1px dashed rgba(219,130,28,.33);border-radius:3px;cursor:pointer;color:#db821c;line-height:0}.btn-import .icon{width:28px;height:28px;fill:#b8a894}.import-remote-view{padding:10px;background-color:hsla(0,0%,100%,.93);z-index:1}.import-remote{margin-bottom:10px;border:1px solid rgba(145,106,48,.28);border-radius:3px}.import-remote input{border-color:transparent}.import-remote .input{border-right:1px solid rgba(145,106,48,.28);border-left:1px solid rgba(145,106,48,.28)}.import-remote .label{margin:0;display:block;text-align:center;width:auto}.import-remote .btn{padding:0 5px;opacity:.5}.api-import-info:hover{border-color:rgba(145,106,48,.65)}.anim-dur-0{transition:transform 0s,opacity 0s}.anim-dur{transition:transform .35s,opacity .35s;transition-timing-function:ease-out}.api-doc-anim{opacity:1}.api-doc-anim-enter,.api-doc-anim-leave-to{opacity:.5}.app{transition:filter .2s}.app .api-doc-view,.app .view-page-max{width:90%}.view-page-max{min-width:400px;max-width:1200px;max-height:1800px;margin-left:auto;margin-right:auto}body:before{position:absolute;left:0;right:0;top:0;bottom:0;background-image:url(../img/bg2.svg);background-position:50%;background-size:cover;filter:grayscale(.4);opacity:.3;z-index:-1}.api-doc-edit{z-index:100;padding:20px}.api-doc-edit-effect .content,.api-doc-edit-effect .head{filter:blur(5px);transition:filter .3s ease-in}.head{padding:10px 0;padding-bottom:0;z-index:2}.content,.head{position:relative}.content{flex-grow:1;overflow:visible;z-index:1;border-top:none}.api-add{padding:0 5px}.menu-width{width:240px}.label{text-align:right;margin:0 5px;white-space:nowrap;min-width:70px;color:#424444}.label-auto{min-width:auto}.search{border:1px solid #dcdfe6;border-radius:30px;height:30px}.search input{border:none;width:auto;flex-grow:1}.search .icon{margin:2px 8px;height:18px;fill:#c0c4cc}.api-list-view .search{margin:10px}.api-group{margin-bottom:15px}.api-group-name,.api-item{padding:2px 10px}.api-item{cursor:pointer}.api-name{flex-grow:0;overflow:hidden}.api-item .api-remove{padding:3px 5px;flex-shrink:0;opacity:0;transition:.6s}.api-item:hover .api-remove{opacity:1}.item-active{color:#db821c}.url-info{opacity:.8;font-size:.8rem;color:#aaa;margin-top:-5px;padding-bottom:3px}.item-active .url-info{color:rgba(219,130,28,.76)}.api-item-active:after{content:"";display:block;width:2px;position:absolute;top:0;bottom:0;right:0}</style></head><body><div id=app></div></body></html><script>(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)})({0:function(e,t,n){e.exports=n("56d7")},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"0538":function(e,t,n){"use strict";var r=n("1c0b"),i=n("861d"),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0b25":function(e,t,n){var r=n("a691"),i=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"10d1":function(e,t,n){"use strict";var r,i=n("da84"),o=n("e2cc"),a=n("f183"),s=n("6d61"),c=n("acac"),l=n("861d"),u=n("69f3").enforce,f=n("7f9a"),d=!i.ActiveXObject&&"ActiveXObject"in i,p=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=s("WeakMap",h,c);if(f&&d){r=c.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var v=m.prototype,g=v["delete"],b=v.has,y=v.get,O=v.set;o(v,{delete:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(l(e)&&!p(e)){var t=u(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!p(e)){var n=u(this);n.frozen||(n.frozen=new r),b.call(this,e)?O.call(this,e,t):n.frozen.set(e,t)}else O.call(this,e,t);return this}})}},1276:function(e,t,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),c=n("8aa5"),l=n("50c4"),u=n("14c3"),f=n("9263"),d=n("d039"),p=[].push,h=Math.min,m=4294967295,v=!d((function(){return!RegExp(m,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);var s,c,l,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=new RegExp(e.source,d+"g");while(s=f.call(v,r)){if(c=v.lastIndex,c>h&&(u.push(r.slice(h,s.index)),s.length>1&&s.index<r.length&&p.apply(u,s.slice(1)),l=s[0].length,h=c,u.length>=o))break;v.lastIndex===s.index&&v.lastIndex++}return h===r.length?!l&&v.test("")||u.push(""):u.push(r.slice(h)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var f=o(e),d=String(this),p=s(f,RegExp),g=f.unicode,b=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),y=new p(v?f:"^(?:"+f.source+")",b),O=void 0===i?m:i>>>0;if(0===O)return[];if(0===d.length)return null===u(y,d)?[d]:[];var x=0,E=0,w=[];while(E<d.length){y.lastIndex=v?E:0;var T,S=u(y,v?d:d.slice(E));if(null===S||(T=h(l(y.lastIndex+(v?0:E)),d.length))===x)E=c(d,E,g);else{if(w.push(d.slice(x,E)),w.length===O)return w;for(var C=1;C<=S.length-1;C++)if(w.push(S[C]),w.length===O)return w;E=x=T}}return w.push(d.slice(x)),w}]}),!v)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("ae40"),s=o("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==o)try{a(l,"forEach",o)}catch(u){l.forEach=o}}},"16e8":function(e,t,n){"use strict";n("a9e5")},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"18a5":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e78":function(e,t,n){"use strict";n("2cbd")},"1f1d":function(e,t,n){(function(e){var r,i,o;n("4160"),n("c975"),n("baa5"),n("fb6a"),n("b0c0"),n("7039"),n("3410"),n("ac1f"),n("5319"),n("1276"),n("159b");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){var t=e.Pos;function n(e,t){for(var n=0,r=e.length;n<r;++n)t(e[n])}function r(e,t){if(!Array.prototype.indexOf){var n=e.length;while(n--)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}function i(n,r,i,o){var a=n.getCursor(),s=i(n,a);if(!/\b(?:string|comment)\b/.test(s.type)){var c=e.innerMode(n.getMode(),s.state);if("json"!==c.mode.helperType){s.state=c.state,/^[\w$_]*$/.test(s.string)?s.end>a.ch&&(s.end=a.ch,s.string=s.string.slice(0,a.ch-s.start)):s={start:a.ch,end:a.ch,string:"",state:s.state,type:"."==s.string?"property":null};var l=s;while("property"==l.type){if(l=i(n,t(a.line,l.start)),"."!=l.string)return;if(l=i(n,t(a.line,l.start)),!u)var u=[];u.push(l)}return s.string||s.type?{list:h(s,u,r,o),from:t(a.line,s.start),to:t(a.line,s.end)}:{list:[]}}}}function o(e,t){return i(e,f,(function(e,t){return e.getTokenAt(t)}),t)}function a(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function s(e,t){return i(e,d,a,t)}e.registerHelper("hint","javascript",o),e.registerHelper("hint","coffeescript",s);var c="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),l="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),f="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),d="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function p(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var r in e)t(r)}function h(e,t,i,o){var a=[],s=e.string,f=o&&o.globalScope||window;function d(e){0!=e.lastIndexOf(s,0)||r(a,e)||a.push(e)}function h(e){"string"==typeof e?n(c,d):e instanceof Array?n(l,d):e instanceof Function&&n(u,d),p(e,d)}if(t&&t.length){var m,v=t.pop();v.type&&0===v.type.indexOf("variable")?(o&&o.additionalContext&&(m=o.additionalContext[v.string]),o&&!1===o.useGlobalScope||(m=m||f[v.string])):"string"==v.type?m="":"atom"==v.type?m=1:"function"==v.type&&(null==f.jQuery||"$"!=v.string&&"jQuery"!=v.string||"function"!=typeof f.jQuery?null!=f._&&"_"==v.string&&"function"==typeof f._&&(m=f._()):m=f.jQuery());while(null!=m&&t.length)m=m[t.pop().string];null!=m&&h(m)}else{for(var g=e.state.localVars;g;g=g.next)d(g.name);for(g=e.state.globalVars;g;g=g.next)d(g.name);o&&!1===o.useGlobalScope||h(f),n(i,d)}return a}}))}).call(this,n("62e4")(e))},2266:function(e,t,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),c=n("9bdd"),l=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,n,u,f){var d,p,h,m,v,g,b,y=a(t,n,u?2:1);if(f)d=e;else{if(p=s(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(h=0,m=o(e.length);m>h;h++)if(v=u?y(r(b=e[h])[0],b[1]):y(e[h]),v&&v instanceof l)return v;return new l(!1)}d=p.call(e)}g=d.next;while(!(b=g.call(d)).done)if(v=c(d,y,b.value,u),"object"==typeof v&&v&&v instanceof l)return v;return new l(!1)};u.stop=function(e){return new l(!0,e)}},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h,m=e.target,v=e.global,g=e.stat;if(u=v?r:g?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(f in t){if(p=t[f],e.noTargetGet?(h=i(u,f),d=h&&h.value):d=u[f],n=l(v?f:m+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(u,f,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var c={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n("4362"))},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",c=RegExp.prototype,l=c[s],u=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(u||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},2650:function(e,t,n){"use strict";n("e766")},"2a19":function(e,t,n){},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),c=n("37e8"),l=n("6eeb"),u=n("19aa"),f=n("5135"),d=n("60da"),p=n("4df4"),h=n("6547").codeAt,m=n("5fb2"),v=n("d44e"),g=n("9861"),b=n("69f3"),y=s.URL,O=g.URLSearchParams,x=g.getState,E=b.set,w=b.getterFor("URL"),T=Math.floor,S=Math.pow,C="Invalid authority",_="Invalid scheme",j="Invalid host",A="Invalid port",k=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,R=/\d/,N=/^(0x|0X)/,I=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,P=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return j;if(n=z(t.slice(1,-1)),!n)return j;e.host=n}else if(J(e)){if(t=m(t),P.test(t))return j;if(n=W(t),null===n)return j;e.host=n}else{if(U.test(t))return j;for(n="",r=p(t),i=0;i<r.length;i++)n+=X(r[i],q);e.host=n}},W=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=c[r],""==i)return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=N.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?M:8==o?I:D).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*S(256,3-r);return s},z=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l++,u=l}while(d()){if(8==l)return;if(":"!=d()){t=n=0;while(n<4&&D.test(d()))t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!R.test(d()))return;while(R.test(d())){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;f++,l++,u=l}}if(null!==u){a=l-u,l=7;while(0!=l&&a>0)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s}else if(8!=l)return;return c},V=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},G=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=T(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},$=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),K=d({},$,{"#":1,"?":1,"{":1,"}":1}),Y=d({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f(Q,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&k.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},ce={},le={},ue={},fe={},de={},pe={},he={},me={},ve={},ge={},be={},ye={},Oe={},xe={},Ee={},we={},Te={},Se={},Ce={},_e=function(e,t,n,i){var o,a,s,c,l=n||ae,u=0,d="",h=!1,m=!1,v=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(H,""),o=p(t);while(u<=o.length){switch(a=o[u],l){case ae:if(!a||!k.test(a)){if(n)return _;l=ce;continue}d+=a.toLowerCase(),l=se;break;case se:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return _;d="",l=ce,u=0;continue}if(n&&(J(e)!=f(Q,d)||"file"==d&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(J(e)&&Q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=ye:J(e)&&i&&i.scheme==e.scheme?l=le:J(e)?l=pe:"/"==o[u+1]?(l=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Te)}break;case ce:if(!i||i.cannotBeABaseURL&&"#"!=a)return _;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=Ce;break}l="file"==i.scheme?ye:fe;continue;case le:if("/"!=a||"/"!=o[u+1]){l=fe;continue}l=he,u++;break;case ue:if("/"==a){l=me;break}l=we;continue;case fe:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&J(e))l=de;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=Se;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=we;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Ce}break;case de:if(!J(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=we;continue}l=me}else l=he;break;case pe:if(l=he,"/"!=a||"/"!=d.charAt(u+1))continue;u++;break;case he:if("/"!=a&&"\\"!=a){l=me;continue}break;case me:if("@"==a){h&&(d="%40"+d),h=!0,s=p(d);for(var g=0;g<s.length;g++){var b=s[g];if(":"!=b||v){var y=X(b,Y);v?e.password+=y:e.username+=y}else v=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)){if(h&&""==d)return C;u-=p(d).length+1,d="",l=ve}else d+=a;break;case ve:case ge:if(n&&"file"==e.scheme){l=xe;continue}if(":"!=a||m){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)){if(J(e)&&""==d)return j;if(n&&""==d&&(Z(e)||null!==e.port))return;if(c=B(e,d),c)return c;if(d="",l=Ee,n)return;continue}"["==a?m=!0:"]"==a&&(m=!1),d+=a}else{if(""==d)return j;if(c=B(e,d),c)return c;if(d="",l=be,n==ge)return}break;case be:if(!R.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&J(e)||n){if(""!=d){var O=parseInt(d,10);if(O>65535)return A;e.port=J(e)&&O===Q[e.scheme]?null:O,d=""}if(n)return;l=Ee;continue}return A}d+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)l=Oe;else{if(!i||"file"!=i.scheme){l=we;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",l=Se;else{if("#"!=a){ne(o.slice(u).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),l=we;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Ce}}break;case Oe:if("/"==a||"\\"==a){l=xe;break}i&&"file"==i.scheme&&!ne(o.slice(u).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=we;continue;case xe:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(d))l=we;else if(""==d){if(e.host="",n)return;l=Ee}else{if(c=B(e,d),c)return c;if("localhost"==e.host&&(e.host=""),n)return;d="",l=Ee}continue}d+=a;break;case Ee:if(J(e)){if(l=we,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=we,"/"!=a))continue}else e.fragment="",l=Ce;else e.query="",l=Se;break;case we:if(a==r||"/"==a||"\\"==a&&J(e)||!n&&("?"==a||"#"==a)){if(oe(d)?(re(e),"/"==a||"\\"==a&&J(e)||e.path.push("")):ie(d)?"/"==a||"\\"==a&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",l=Se):"#"==a&&(e.fragment="",l=Ce)}else d+=X(a,K);break;case Te:"?"==a?(e.query="",l=Se):"#"==a?(e.fragment="",l=Ce):a!=r&&(e.path[0]+=X(a,q));break;case Se:n||"#"!=a?a!=r&&("'"==a&&J(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,q)):(e.fragment="",l=Ce);break;case Ce:a!=r&&(e.fragment+=X(a,$));break}u++}},je=function(e){var t,n,r=u(this,je,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=E(r,{type:"URL"});if(void 0!==i)if(i instanceof je)t=w(i);else if(n=_e(t={},String(i)),n)throw TypeError(n);if(n=_e(s,a,null,t),n)throw TypeError(n);var c=s.searchParams=new O,l=x(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},o||(r.href=ke.call(r),r.origin=Le.call(r),r.protocol=Re.call(r),r.username=Ne.call(r),r.password=Ie.call(r),r.host=Me.call(r),r.hostname=De.call(r),r.port=Pe.call(r),r.pathname=Ue.call(r),r.search=Fe.call(r),r.searchParams=He.call(r),r.hash=Be.call(r))},Ae=je.prototype,ke=function(){var e=w(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Z(e)&&(l+=n+(r?":"+r:"")+"@"),l+=G(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Le=function(){var e=w(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&J(e)?t+"://"+G(e.host)+(null!==n?":"+n:""):"null"},Re=function(){return w(this).scheme+":"},Ne=function(){return w(this).username},Ie=function(){return w(this).password},Me=function(){var e=w(this),t=e.host,n=e.port;return null===t?"":null===n?G(t):G(t)+":"+n},De=function(){var e=w(this).host;return null===e?"":G(e)},Pe=function(){var e=w(this).port;return null===e?"":String(e)},Ue=function(){var e=w(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Fe=function(){var e=w(this).query;return e?"?"+e:""},He=function(){return w(this).searchParams},Be=function(){var e=w(this).fragment;return e?"#"+e:""},We=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(Ae,{href:We(ke,(function(e){var t=w(this),n=String(e),r=_e(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:We(Le),protocol:We(Re,(function(e){var t=w(this);_e(t,String(e)+":",ae)})),username:We(Ne,(function(e){var t=w(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],Y)}})),password:We(Ie,(function(e){var t=w(this),n=p(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],Y)}})),host:We(Me,(function(e){var t=w(this);t.cannotBeABaseURL||_e(t,String(e),ve)})),hostname:We(De,(function(e){var t=w(this);t.cannotBeABaseURL||_e(t,String(e),ge)})),port:We(Pe,(function(e){var t=w(this);ee(t)||(e=String(e),""==e?t.port=null:_e(t,e,be))})),pathname:We(Ue,(function(e){var t=w(this);t.cannotBeABaseURL||(t.path=[],_e(t,e+"",Ee))})),search:We(Fe,(function(e){var t=w(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",_e(t,e,Se)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:We(He),hash:We(Be,(function(e){var t=w(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",_e(t,e,Ce)):t.fragment=null}))}),l(Ae,"toJSON",(function(){return ke.call(this)}),{enumerable:!0}),l(Ae,"toString",(function(){return ke.call(this)}),{enumerable:!0}),y){var ze=y.createObjectURL,Ve=y.revokeObjectURL;ze&&l(je,"createObjectURL",(function(e){return ze.apply(y,arguments)})),Ve&&l(je,"revokeObjectURL",(function(e){return Ve.apply(y,arguments)}))}v(je,"URL"),i({global:!0,forced:!a,sham:!o},{URL:je})},"2b55":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("c975"),core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_string_ends_with__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8a79"),core_js_modules_es_string_ends_with__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_ends_with__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("3ca3"),core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_string_starts_with__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("2ca0"),core_js_modules_es_string_starts_with__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_string_starts_with__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_web_url__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("2b3d"),core_js_modules_web_url__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_web_url__WEBPACK_IMPORTED_MODULE_6__),C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("5530"),C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("53ca"),C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ade3"),_ApiDebug__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("3534"),_tips_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("cf85"),components={ApiDebug:_ApiDebug__WEBPACK_IMPORTED_MODULE_10__["a"]};__webpack_exports__["a"]={components:components,props:["apiData","apiDoc","type","open"],data:function(){return Object(C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_9__["a"])({tips:_tips_js__WEBPACK_IMPORTED_MODULE_11__["a"],visibleDesc:!1,api:this.apiData||{},ajax:null,res:null,showDebug:!1},"api",{})},watch:{apiData:function(e,t){this.setApi()}},computed:{apiTheme:function(){var e={get:"api-theme-get",post:"api-theme-post",put:"api-theme-put",head:"api-theme-head",delete:"api-theme-delete"},t="design"==this.type?"":"api-design-mini";return t="",t+" "+e[this.api.method]},resStr:function(){var e=this.res;if(!this.res)return"";var t="";return t="object"===Object(C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(e)?JSON.stringify(e,null,2):e,t||""},url:function(){var e="--";try{e=new URL(this.api.url).href}catch(r){var t=this.apiDoc.baseURL||"",n=this.api.url||"";e=t.endsWith("/")||n.startsWith("/")?t.endsWith("/")&&n.startsWith("/")?t+"/"+n.substr(1):t+n:t+"/"+n}return e}},mounted:function(){this.setApi()},methods:{setApi:function(){var e={group:"默认分组",name:"新建接口",method:"get",url:"",param:this.tips.param,paramSet:this.tips.paramSet,result:this.tips.result,resultSet:this.tips.resultSet};this.api=Object.assign({},e,this.apiData)},format:function(e){if(this.api[e]){var t=this.api[e];if("object"==Object(C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(t)&&(this.api[e]=JSON.stringify(t,null,1)),"string"==typeof t&&t.indexOf("{")>=0)try{try{var n=JSON.parse(this.api[e]);this.api[e]=JSON.stringify(n,null,1)}catch(r){window.eval("window.paramEval="+this.api[e]),this.api[e]=JSON.stringify(window.paramEval,null,1)}}catch(r){window.alert("仅支持Json,Object类型的参数格式化\n异常详情:\n"+r.message)}}},setRes:function(e){this.res=e},useRes:function(){var e=this.res;e&&"object"==Object(C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(e)&&(e=JSON.stringify(e,null,2)),e&&this.$set(this.api,"result",e),this.showDebug=!1,this.setRes(null),this.apiDebug(!0)},apiDebug:function apiDebug(cancel){var _this=this;if(this.ajax&&this.ajax.cancel("取消调试"),this.setRes(null),cancel)return this.ajax=!1;var param=Object(C_Users_admin_Desktop_api_doc_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["a"])({},this.api);try{param.param=eval("("+param.param+")"),param.paramSet=eval("("+param.paramSet+")"),param.result=eval("("+param.result+")"),param.resultSet=eval("("+param.resultSet+")"),console.log("[解析参数]",param)}catch(error){return void console.error("[解析参数异常]",error,param)}this.ajax=this._api.axios.CancelToken.source();var config={baseURL:this.apiDoc.baseURL,cancelToken:this.ajax.token};window.apiDebug(param,config).then((function(e){setTimeout((function(e){return _this.ajax=null}),100),_this.setRes(e)}))}}}},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),s=n("1d80"),c=n("ab13"),l=n("c430"),u="".startsWith,f=Math.min,d=c("startsWith"),p=!l&&!d&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{startsWith:function(e){var t=String(s(this));a(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cbd":function(e,t,n){},"2cf4":function(e,t,n){var r,i,o,a=n("da84"),s=n("d039"),c=n("c6b6"),l=n("0366"),u=n("1be4"),f=n("cc12"),d=n("1cdc"),p=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,O={},x="onreadystatechange",E=function(e){if(O.hasOwnProperty(e)){var t=O[e];delete O[e],t()}},w=function(e){return function(){E(e)}},T=function(e){E(e.data)},S=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&m||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return O[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},m=function(e){delete O[e]},"process"==c(v)?r=function(e){v.nextTick(w(e))}:b&&b.now?r=function(e){b.now(w(e))}:g&&!d?(i=new g,o=i.port2,i.port1.onmessage=T,r=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(S)||"file:"===p.protocol?r=x in f("script")?function(e){u.appendChild(f("script"))[x]=function(){u.removeChild(this),E(e)}}:function(e){setTimeout(w(e),0)}:(r=S,a.addEventListener("message",T,!1))),e.exports={set:h,clear:m}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,l=c&&c.v8;l?(r=l.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"2d2a":function(e,t,n){},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2d9d":function(e,t,n){(function(e){var r,i,o;n("c975"),n("baa5"),n("fb6a");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,c=0;;){var l=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=l){if(1==c&&l<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,l+1)),!/^(comment|string)/.test(r))return l+1;s=l-1}else{if(1==c)break;c=1,s=o.length}}}var s="{",c="}",l=a("{");if(null==l&&(s="[",c="]",l=a("[")),null!=l){var u,f,d=1,p=t.lastLine();e:for(var h=i;h<=p;++h)for(var m=t.getLine(h),v=h==i?l:0;;){var g=m.indexOf(s,v),b=m.indexOf(c,v);if(g<0&&(g=m.length),b<0&&(b=m.length),v=Math.min(g,b),v==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==r)if(v==g)++d;else if(!--d){u=h,f=v;break e}++v}if(null!=u&&(i!=u||f!=l))return{from:e.Pos(i,l),to:e.Pos(u,f)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:e.Pos(i,s)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var c=r(s.line+1);if(null==c)break;s=c.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var s=r(a+1);if(null==s)break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}))}).call(this,n("62e4")(e))},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},3534:function(e,t,n){"use strict";var r=n("7a23"),i={class:"api-debug flex-column"},o={class:"debug-head flex-row-between"},a={class:"flex-row-center"},s={class:"label-auto flex-row-center"},c=Object(r["h"])("开始 "),l={class:"debug-body flex-column"},u={class:"api-req"},f={class:"view-half flex-column"},d={class:"flex-row-center view-head flex-row-center"},p={class:"textarea"},h={class:"view-half flex-column"},m={class:"flex-row-center view-head flex-row-center"},v={class:"textarea"},g={class:"api-res flex-column"},b={class:"res-head flex-row-between"},y=Object(r["i"])("span",{class:"btn-link"},"同步",-1),O={key:0,class:"text-center aux"},x={key:0,class:"abs loading flex-center",size:"large",fix:""},E=Object(r["i"])("div",null,"Loading...",-1);function w(e,t,n,w,T,S){var C=Object(r["n"])("Icon");return Object(r["j"])(),Object(r["e"])("div",i,[Object(r["i"])("div",o,[Object(r["i"])("div",a,[Object(r["i"])("span",s,Object(r["o"])(T.api.method||"无"),1),Object(r["h"])(" "+Object(r["o"])(S.url),1)]),Object(r["i"])("span",{class:"flex-row-center click",onClick:t[1]||(t[1]=function(e){return S.apiDebug()})},[Object(r["i"])(C,{class:"icon",type:"debug"}),c])]),Object(r["i"])("div",l,[Object(r["i"])("div",u,[Object(r["i"])("div",f,[Object(r["i"])("div",d,[Object(r["i"])("span",{class:"label-auto",title:T.tips.paramTips},"请求参数",8,["title"]),Object(r["i"])("span",{title:"格式化请求参数",onClick:t[2]||(t[2]=function(e){return S.paramFormat("paramMock")}),class:"btn-format flex-row-center click"},[Object(r["i"])(C,{class:"icon-format",type:"format"})])]),Object(r["i"])("div",p,[Object(r["v"])(Object(r["i"])("textarea",{placeholder:T.tips.paramMock,maxlength:"20480","onUpdate:modelValue":t[3]||(t[3]=function(e){return T.api.paramMock=e})},null,8,["placeholder"]),[[r["s"],T.api.paramMock]])])]),Object(r["i"])("div",h,[Object(r["i"])("div",m,[Object(r["i"])("span",{class:"label-auto",title:T.tips.httpHead},"请求头",8,["title"]),Object(r["i"])("span",{title:"格式化请求头",onClick:t[4]||(t[4]=function(e){return S.paramFormat("httpHead")}),class:"btn-format flex-row-center click"},[Object(r["i"])(C,{class:"icon-format",type:"format"})])]),Object(r["i"])("div",v,[Object(r["v"])(Object(r["i"])("textarea",{placeholder:T.tips.httpHead,maxlength:"2048","onUpdate:modelValue":t[5]||(t[5]=function(e){return T.api.httpHead=e})},null,8,["placeholder"]),[[r["s"],T.api.httpHead]])])])]),Object(r["i"])("div",g,[Object(r["i"])("div",b,[Object(r["i"])("span",{class:"label-auto flex-row-center",title:T.tips.paramTips},"调试结果",8,["title"]),y]),Object(r["i"])("div",{class:["res-info",T.res&&"1"==T.res.code?"error":""]},[Object(r["h"])(Object(r["o"])(S.resStr)+" ",1),T.res?Object(r["f"])("",!0):(Object(r["j"])(),Object(r["e"])("div",O,"调试功能需要服务器允许跨域访问或者同域"))],2)]),Object(r["i"])(r["b"],{name:"anim-opacity"},{default:Object(r["u"])((function(){return[!T.ajax?Object(r["f"])("",!0):(Object(r["j"])(),Object(r["e"])("div",x,[Object(r["i"])(C,{type:"refresh",class:"ajax-loading"}),E]))]})),_:1})])])}n("c975"),n("a15b");var T=n("5530"),S=n("53ca"),C={},_={components:C,props:["apiData","apiDoc"],data:function(){return{tips:j,api:this.apiData||{},ajax:null,res:null}},watch:{},computed:{resStr:function(){var e=this.res;if(!this.res)return"";var t="";return t="object"===Object(S["a"])(e)?JSON.stringify(e,null,2):e,t||""},url:function(){var e=(this.apiDoc||{}).baseURL,t=(this.apiData||{}).url;return[e,t].join("/")}},methods:{sync:function(){},paramFormat:function(e){if(this.api[e]&&this.api[e].indexOf("{")>=0)try{try{var t=JSON.parse(this.api[e]);this.api[e]=JSON.stringify(t,null,1)}catch(n){window.eval("window.paramEval="+this.api[e]),this.api[e]=JSON.stringify(window.paramEval,null,1)}}catch(n){window.alert("仅支持Json,Object类型的参数格式化\n异常详情:\n"+n.message)}},apiDebug:function(e){var t=this;if(this.ajax&&this.ajax.cancel("取消调试"),this.ajax=window.axios.CancelToken.source(),e)return this.ajax=!1;var n=Object(T["a"])(Object(T["a"])({},this.api),{},{baseURL:this.apiDoc.baseURL,cancelToken:this.ajax.token});window.apiDebug(n,this.ajax).then((function(e){t.ajax=null,t.res=e}))}}},j={url:"输入api地址(示例:query/data)",paramTips:'填写请求参数;示例:\n{\n  keyword: "查询关键字",\n  limit: 10,\n  page: 1\n}\n',paramDescTips:'填写参数说明;示例:\n{\n  keyword: "",//查询关键字\n  limit: 10,//分页每页条数(10条)\n  page: 1,//分页页码(第一页)\n}\n',paramCreateTips:'前端脚本构建请求参数;示例:\nfunction() {\n  return {\n    keyword: "",\n    limit: 10,\n    page: 1\n  };\n} ',requestHeaderTips:"填写附加的请求头信息;示例:\n{\n 'content-type': 'application/x-www-form-urlencoded'\n}\n",resultTips:'填写返回参数;示例:\n{\n  code: "0",\n  data: ["Test19"],\n  total:1,\n  message: "查询成功"\n}\n',httpHead:'填写请求头;示例:\n{\n  "Content-Type": "multipart/form-data",\n  "Content-Type": "application/json;charset=UTF-8"\n}\n',resultCreateTips:'前端脚本构建返回结果;示例:\nfunction() {\n  return {\n    code: "0",\n    data: ["Test19"],\n    total:1,\n    message: "查询成功"\n  };\n} \n'};n("b0ae");_.render=w;t["a"]=_},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"366b":function(e,t,n){var r,i;n("99af"),n("7db0"),n("c975"),n("a15b"),n("d81d"),n("fb6a"),n("a434"),n("b0c0"),n("a9e3"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("841c"),n("1276"),n("18a5");var o=n("7037");(function(a,s){"object"===o(t)&&"undefined"!==typeof e?e.exports=s():(r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i))})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),s=r||i||a,c=s&&(r?document.documentMode||6:+(a||i)[1]),l=!a&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),f=!a&&/Chrome\//.test(e),d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),v=!a&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),b=v||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=v||/Mac/.test(t),O=/\bCrOS\b/.test(e),x=/win/i.test(t),E=d&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(d=!1,l=!0);var w=y&&(u||d&&(null==E||E<12.11)),T=n||s&&c>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,_=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return j(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute("role","presentation"),i}function R(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function N(){var e;try{e=document.activeElement}catch(t){e=document.body||null}while(e&&e.shadowRoot&&e.shadowRoot.activeElement)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}C=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var D=function(e){e.select()};function P(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function U(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function F(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}v?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(D=function(e){try{e.select()}catch(t){}});var H=function(){this.id=null};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}H.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var W=30,z={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},G={origin:"*mouse"},q={origin:"+move"};function $(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var K=[""];function Y(e){while(K.length<=e)K.push(X(K)+" ");return K[e]}function X(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i)r++;e.splice(r,0,t)}function Z(){}function ee(e,t){var n;return Object.create?n=Object.create(e):(Z.prototype=e,n=new Z),t&&U(t,n),n}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ne(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||te.test(e))}function re(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ne(e))||t.test(e):ne(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&oe.test(e)}function se(e,t,n){while((n<0?t>0:t<e.length)&&ae(e.charAt(t)))t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,r){var i=this;this.input=r,i.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=L("div",null,"CodeMirror-code"),i.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=k("div",null,"CodeMirror-cursors"),i.measure=k("div",null,"CodeMirror-measure"),i.lineMeasure=k("div",null,"CodeMirror-measure"),i.lineSpace=L("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=L("div",[i.lineSpace],"CodeMirror-lines");i.mover=k("div",[o],null,"position: relative"),i.sizer=k("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=k("div",null,null,"position: absolute; height: "+W+"px; width: 1px;"),i.gutters=k("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=k("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=k("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),s&&c<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&b||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function ue(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function fe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function de(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function pe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function he(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==t)break;n+=r.children[i].chunkSize()}return n+t.first}function me(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],c=s.height;if(t<c)break;t-=c}return n+a}function ve(e,t){return t>=e.first&&t<e.first+e.size}function ge(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function be(e,t,n){if(void 0===n&&(n=null),!(this instanceof be))return new be(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ye(e,t){return e.line-t.line||e.ch-t.ch}function Oe(e,t){return e.sticky==t.sticky&&0==ye(e,t)}function xe(e){return be(e.line,e.ch)}function Ee(e,t){return ye(e,t)<0?t:e}function we(e,t){return ye(e,t)<0?e:t}function Te(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Se(e,t){if(t.line<e.first)return be(e.first,0);var n=e.first+e.size-1;return t.line>n?be(n,ue(e,n).text.length):Ce(t,ue(e,t.line).text.length)}function Ce(e,t){var n=e.ch;return null==n||n>t?be(e.line,t):n<0?be(e.line,0):e}function _e(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=Se(e,t[r]);return n}var je=!1,Ae=!1;function ke(){je=!0}function Le(){Ae=!0}function Re(e,t,n){this.marker=e,this.from=t,this.to=n}function Ne(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ie(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Me(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function De(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var c=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Re(a,o.from,c?null:o.to))}}return r}function Pe(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var c=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Re(a,c?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Ue(e,t){if(t.full)return null;var n=ve(e,t.from.line)&&ue(e,t.from.line).markedSpans,r=ve(e,t.to.line)&&ue(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ye(t.from,t.to),s=De(n,i,a),c=Pe(r,o,a),l=1==t.text.length,u=X(t.text).length+(l?i:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var p=Ne(c,d.marker);p?l&&(d.to=null==p.to?null:p.to+u):d.to=i}}if(c)for(var h=0;h<c.length;++h){var m=c[h];if(null!=m.to&&(m.to+=u),null==m.from){var v=Ne(s,m.marker);v||(m.from=u,l&&(s||(s=[])).push(m))}else m.from+=u,l&&(s||(s=[])).push(m)}s&&(s=Fe(s)),c&&c!=s&&(c=Fe(c));var g=[s];if(!l){var b,y=t.text.length-2;if(y>0&&s)for(var O=0;O<s.length;++O)null==s[O].to&&(b||(b=[])).push(new Re(s[O].marker,null,null));for(var x=0;x<y;++x)g.push(b);g.push(c)}return g}function Fe(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function He(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),c=0;c<i.length;++c){var l=i[c];if(!(ye(l.to,s.from)<0||ye(l.from,s.to)>0)){var u=[c,1],f=ye(l.from,s.from),d=ye(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function Be(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function We(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function ze(e){return e.inclusiveLeft?-1:0}function Ve(e){return e.inclusiveRight?1:0}function Ge(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ye(r.from,i.from)||ze(e)-ze(t);if(o)return-o;var a=ye(r.to,i.to)||Ve(e)-Ve(t);return a||t.id-e.id}function qe(e,t){var n,r=Ae&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ge(n,i.marker)<0)&&(n=i.marker);return n}function $e(e){return qe(e,!0)}function Ke(e){return qe(e,!1)}function Ye(e,t){var n,r=Ae&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ge(n,o.marker)<0)&&(n=o.marker)}return n}function Xe(e,t,n,r,i){var o=ue(e,t),a=Ae&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];if(c.marker.collapsed){var l=c.marker.find(0),u=ye(l.from,n)||ze(c.marker)-ze(i),f=ye(l.to,r)||Ve(c.marker)-Ve(i);if(!(u>=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ye(l.to,n)>=0:ye(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ye(l.from,r)<=0:ye(l.from,r)<0)))return!0}}}function Qe(e){var t;while(t=$e(e))e=t.find(-1,!0).line;return e}function Je(e){var t;while(t=Ke(e))e=t.find(1,!0).line;return e}function Ze(e){var t,n;while(t=Ke(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function et(e,t){var n=ue(e,t),r=Qe(n);return n==r?t:he(r)}function tt(e,t){if(t>e.lastLine())return t;var n,r=ue(e,t);if(!nt(e,r))return t;while(n=Ke(r))r=n.find(1,!0).line;return he(r)+1}function nt(e,t){var n=Ae&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rt(e,t,r))return!0}}function rt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return rt(e,r.line,Ne(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&rt(e,t,i))return!0}function it(e){e=Qe(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function ot(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=$e(r)){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=e;while(t=Ke(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function at(e){var t=e.display,n=e.doc;t.maxLine=ue(n,n.first),t.maxLineLength=ot(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=ot(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}function st(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ct=null;function lt(e,t,n){var r;ct=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ct=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ct=i)}return null!=r?r:ct}var ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,f=[],d=0;d<u;++d)f.push(n(e.charCodeAt(d)));for(var p=0,h=l;p<u;++p){var m=f[p];"m"==m?f[p]=h:h=m}for(var v=0,g=l;v<u;++v){var b=f[v];"1"==b&&"r"==g?f[v]="n":o.test(b)&&(g=b,"r"==b&&(f[v]="R"))}for(var y=1,O=f[0];y<u-1;++y){var x=f[y];"+"==x&&"1"==O&&"1"==f[y+1]?f[y]="1":","!=x||O!=f[y+1]||"1"!=O&&"n"!=O||(f[y]=O),O=x}for(var E=0;E<u;++E){var w=f[E];if(","==w)f[E]="N";else if("%"==w){var T=void 0;for(T=E+1;T<u&&"%"==f[T];++T);for(var S=E&&"!"==f[E-1]||T<u&&"1"==f[T]?"1":"N",C=E;C<T;++C)f[C]=S;E=T-1}}for(var _=0,j=l;_<u;++_){var A=f[_];"L"==j&&"1"==A?f[_]="L":o.test(A)&&(j=A)}for(var k=0;k<u;++k)if(i.test(f[k])){var L=void 0;for(L=k+1;L<u&&i.test(f[L]);++L);for(var R="L"==(k?f[k-1]:l),N="L"==(L<u?f[L]:l),I=R==N?R?"L":"R":l,M=k;M<L;++M)f[M]=I;k=L-1}for(var D,P=[],U=0;U<u;)if(a.test(f[U])){var F=U;for(++U;U<u&&a.test(f[U]);++U);P.push(new c(0,F,U))}else{var H=U,B=P.length;for(++U;U<u&&"L"!=f[U];++U);for(var W=H;W<U;)if(s.test(f[W])){H<W&&P.splice(B,0,new c(1,H,W));var z=W;for(++W;W<U&&s.test(f[W]);++W);P.splice(B,0,new c(2,z,W)),H=W}else++W;H<U&&P.splice(B,0,new c(1,H,U))}return"ltr"==t&&(1==P[0].level&&(D=e.match(/^\s+/))&&(P[0].from=D[0].length,P.unshift(new c(0,0,D[0].length))),1==X(P).level&&(D=e.match(/\s+$/))&&(X(P).to-=D[0].length,P.push(new c(0,u-D[0].length,u)))),"rtl"==t?P.reverse():P}}();function ft(e,t){var n=e.order;return null==n&&(n=e.order=ut(e.text,t)),n}var dt=[],pt=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||dt).concat(n)}};function ht(e,t){return e._handlers&&e._handlers[t]||dt}function mt(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function vt(e,t){var n=ht(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function gt(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),vt(e,n||t.type,e,t),wt(t)||t.codemirrorIgnore}function bt(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function yt(e,t){return ht(e,t).length>0}function Ot(e){e.prototype.on=function(e,t){pt(this,e,t)},e.prototype.off=function(e,t){mt(this,e,t)}}function xt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Et(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wt(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Tt(e){xt(e),Et(e)}function St(e){return e.target||e.srcElement}function Ct(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var _t,jt,At=function(){if(s&&c<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}();function kt(e){if(null==_t){var t=k("span","​");A(e,k("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_t=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&c<8))}var n=_t?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Lt(e){if(null!=jt)return jt;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(jt=r.right-n.right<3)}var Rt=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Nt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},It=function(){var e=k("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Mt=null;function Dt(e){if(null!=Mt)return Mt;var t=A(e,k("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Mt=Math.abs(n.left-r.left)>1}var Pt={},Ut={};function Ft(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pt[e]=t}function Ht(e,t){Ut[e]=t}function Bt(e){if("string"==typeof e&&Ut.hasOwnProperty(e))e=Ut[e];else if(e&&"string"==typeof e.name&&Ut.hasOwnProperty(e.name)){var t=Ut[e.name];"string"==typeof t&&(t={name:t}),e=ee(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Bt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Bt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Wt(e,t){t=Bt(t);var n=Pt[t.name];if(!n)return Wt(e,"text/plain");var r=n(e,t);if(zt.hasOwnProperty(t.name)){var i=zt[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var zt={};function Vt(e,t){var n=zt.hasOwnProperty(e)?zt[e]:zt[e]={};U(t,n)}function Gt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function qt(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function $t(e,t,n){return!e.startState||e.startState(t,n)}var Kt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},Kt.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},Kt.prototype.eatSpace=function(){var e=this,t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++e.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Kt.prototype.backUp=function(e){this.pos-=e},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Kt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Kt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Yt=function(e,t){this.state=e,this.lookAhead=t},Xt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Qt(e,t,n,r){var i=[e.state.modeGen],o={};sn(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,sn(e,t.text,s.mode,n,(function(e,t){var n=c;while(l<e){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;n<c;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Jt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Zt(e,he(t)),i=t.text.length>e.options.maxHighlightLength&&Gt(e.doc.mode,r.state),o=Qt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Zt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Xt(r,!0,t);var o=cn(e,t,n),a=o>r.first&&ue(r,o-1).stateAfter,s=a?Xt.fromSaved(r,a,o):new Xt(r,$t(r.mode),o);return r.iter(o,t,(function(n){en(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function en(e,t,n,r){var i=e.doc.mode,o=new Kt(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&tn(i,n.state);while(!o.eol())nn(i,o,n.state),o.start=o.pos}function tn(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=qt(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function nn(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=qt(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Xt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Xt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(e,t,n){return t instanceof Yt?new Xt(e,Gt(e.mode,t.state),n,t.lookAhead):new Xt(e,Gt(e.mode,t),n)},Xt.prototype.save=function(e){var t=!1!==e?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yt(t,this.maxLookAhead):t};var rn=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function on(e,t,n,r){var i,o=e.doc,a=o.mode;t=Se(o,t);var s,c=ue(o,t.line),l=Zt(e,t.line,n),u=new Kt(c.text,e.options.tabSize,l);r&&(s=[]);while((r||u.pos<t.ch)&&!u.eol())u.start=u.pos,i=nn(a,u,l.state),r&&s.push(new rn(u,i,Gt(o.mode,l.state)));return r?s:new rn(u,i,l.state)}function an(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function sn(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var c,l=0,u=null,f=new Kt(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];""==t&&an(tn(n,r.state),o);while(!f.eol()){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&en(e,t,r,f.pos),f.pos=t.length,c=null):c=an(nn(n,f,r.state,d),o),d){var p=d[0].name;p&&(c="m-"+(c?p+" "+c:p))}if(!s||u!=c){while(l<f.start)l=Math.min(f.start,l+5e3),i(l,u);u=c}f.start=f.pos}while(l<f.pos){var h=Math.min(f.pos,l+5e3);i(h,u),l=h}}function cn(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=ue(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof Yt?l.lookAhead:0)<=o.modeFrontier))return s;var u=F(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function ln(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=ue(e,r).stateAfter;if(i&&(!(i instanceof Yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var un=function(e,t,n){this.text=e,We(this,t),this.height=n?n(this):1};function fn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Be(e),We(e,n);var i=r?r(e):1;i!=e.height&&pe(e,i)}function dn(e){e.parent=null,Be(e)}un.prototype.lineNo=function(){return he(this)},Ot(un);var pn={},hn={};function mn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:pn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function vn(e,t){var n=L("span",null,null,l?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(s||l)&&e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=bn,Lt(e.display.measure)&&(a=ft(o,e.doc.direction))&&(r.addToken=On(r.addToken,a)),r.map=[];var c=t!=e.display.externalMeasured&&he(o);En(o,r,Jt(e,o,c)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(kt(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return vt(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function gn(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,r,i,o,a){if(t){var l,u=e.splitSpaces?yn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){l=document.createDocumentFragment();var p=0;while(1){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var v=document.createTextNode(u.slice(p,p+m));s&&c<9?l.appendChild(k("span",[v])):l.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var g=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,y=b-e.col%b;g=l.appendChild(k("span",Y(y),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?(g=l.appendChild(k("span","\r"==h[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",h[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(h[0]),g.setAttribute("cm-text",h[0]),s&&c<9?l.appendChild(k("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),s&&c<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||d||a){var O=n||"";r&&(O+=r),i&&(O+=i);var x=k("span",[l],O,a);return o&&(x.title=o),e.content.appendChild(x)}e.content.appendChild(l)}}function yn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function On(e,t){return function(n,r,i,o,a,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var f=void 0,d=0;d<t.length;d++)if(f=t[d],f.to>l&&f.from<=l)break;if(f.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,f.to-l),i,o,null,s,c),o=null,r=r.slice(f.to-l),l=f.to}}}function xn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,f,d,p=i.length,h=0,m=1,v="",g=0;;){if(g==h){c=l=u=f=s="",d=null,g=1/0;for(var b=[],y=void 0,O=0;O<r.length;++O){var x=r[O],E=x.marker;"bookmark"==E.type&&x.from==h&&E.widgetNode?b.push(E):x.from<=h&&(null==x.to||x.to>h||E.collapsed&&x.to==h&&x.from==h)?(null!=x.to&&x.to!=h&&g>x.to&&(g=x.to,l=""),E.className&&(c+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&x.from==h&&(u+=" "+E.startStyle),E.endStyle&&x.to==g&&(y||(y=[])).push(E.endStyle,x.to),E.title&&!f&&(f=E.title),E.collapsed&&(!d||Ge(d.marker,E)<0)&&(d=x)):x.from>h&&g>x.from&&(g=x.from)}if(y)for(var w=0;w<y.length;w+=2)y[w+1]==g&&(l+=" "+y[w]);if(!d||d.from==h)for(var T=0;T<b.length;++T)xn(t,0,b[T]);if(d&&(d.from||0)==h){if(xn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;var S=Math.min(p,g);while(1){if(v){var C=h+v.length;if(!d){var _=C>S?v.slice(0,S-h):v;t.addToken(t,_,a?a+c:c,u,h+_.length==g?l:"",f,s)}if(C>=S){v=v.slice(S-h),h=S;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=mn(n[m++],t.cm.options)}}else for(var j=1;j<n.length;j+=2)t.addToken(t,i.slice(o,o=n[j]),mn(n[j+1],t.cm.options))}function wn(e,t,n){this.line=t,this.rest=Ze(t),this.size=this.rest?he(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nt(e,t)}function Tn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new wn(e.doc,ue(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Sn=null;function Cn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function _n(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function jn(e,t){var n=e.ownsGroup;if(n)try{_n(n)}finally{Sn=null,t(n)}}var An=null;function kn(e,t){var n=ht(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:An?r=An:(r=An=[],setTimeout(Ln,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Ln(){var e=An;An=null;for(var t=0;t<e.length;++t)e[t]()}function Rn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Dn(e,t):"gutter"==o?Un(e,t,n,r):"class"==o?Pn(e,t):"widget"==o&&Fn(e,t,r)}t.changes=null}function Nn(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&c<8&&(e.node.style.zIndex=2)),e.node}function In(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Nn(t);t.background=r.insertBefore(k("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):vn(e,t)}function Dn(e,t){var n=t.text.className,r=Mn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Pn(e,t)):n&&(t.text.className=n)}function Pn(e,t){In(e,t),t.line.wrapClass?Nn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Un(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Nn(t);t.gutterBackground=k("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Nn(t),s=t.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(k("div",ge(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<e.options.gutters.length;++c){var l=e.options.gutters[c],u=o.hasOwnProperty(l)&&o[l];u&&s.appendChild(k("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Fn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Bn(e,t,n)}function Hn(e,t,n,r){var i=Mn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Pn(e,t),Un(e,t,n,r),Bn(e,t,r),t.node}function Bn(e,t,n){if(Wn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Wn(e,t.rest[r],t,n,!1)}function Wn(e,t,n,r,i){if(t.widgets)for(var o=Nn(n),a=0,s=t.widgets;a<s.length;++a){var c=s[a],l=k("div",[c.node],"CodeMirror-linewidget");c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),zn(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),kn(c,"redraw")}}function zn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Vn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,k("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,t){for(var n=St(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function qn(e){return e.lineSpace.offsetTop}function $n(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Kn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,k("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Yn(e){return W-e.display.nativeBarWidth}function Xn(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function Qn(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}function Jn(e,t,n){var r=e.options.lineWrapping,i=r&&Xn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var c=a[s],l=a[s+1];Math.abs(c.bottom-l.bottom)>2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(he(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function er(e,t){t=Qe(t);var n=he(t),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var i=r.built=vn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function tr(e,t,n,r){return ir(e,rr(e,t),n,r)}function nr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function rr(e,t){var n=he(t),r=nr(e,n);r&&!r.text?r=null:r&&r.changes&&(Rn(e,r,n,Rr(e)),e.curOp.forceUpdate=!0),r||(r=er(e,t));var i=Zn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function ir(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jn(e,t.view,t.rect),t.hasHeights=!0),o=lr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var or,ar={left:0,right:0,top:0,bottom:0};function sr(e,t,n){for(var r,i,o,a,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,o=1,a="left"):t<c?(i=t-s,o=i+1):(l==e.length-3||t==c&&e[l+3]>t)&&(o=c-s,i=o-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(l&&e[l-2]==e[l-3]&&e[l-1].insertLeft)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)while(l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:c}}function cr(e,t){var n=ar;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var i=e.length-1;i>=0;i--)if((n=e[i]).left!=n.right)break;return n}function lr(e,t,n,r){var i,o=sr(t.map,n,r),a=o.node,l=o.start,u=o.end,f=o.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){while(l&&ae(t.line.text.charAt(o.coverStart+l)))--l;while(o.coverStart+u<o.coverEnd&&ae(t.line.text.charAt(o.coverStart+u)))++u;if(i=s&&c<9&&0==l&&u==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():cr(C(a,l,u).getClientRects(),r),i.left||i.right||0==l)break;u=l,l-=1,f="right"}s&&c<11&&(i=ur(e.display.measure,i))}else{var p;l>0&&(f=r="right"),i=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(s&&c<9&&!l&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Lr(e.display),top:h.top,bottom:h.bottom}:ar}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,b=t.view.measure.heights,y=0;y<b.length-1;y++)if(g<b[y])break;var O=y?b[y-1]:0,x=b[y],E={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:O,bottom:x};return i.left||i.right||(E.bogus=!0),e.options.singleCursorHeightPerLine||(E.rtop=m,E.rbottom=v),E}function ur(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Dt(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function fr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fr(e.display.view[t])}function pr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function hr(){return f&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mr(){return f&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Vn(e.widgets[n]));return t}function gr(e,t,n,r,i){if(!i){var o=vr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=it(t);if("local"==r?a+=qn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:mr());var c=s.left+("window"==r?0:hr());n.left+=c,n.right+=c}return n.top+=a,n.bottom+=a,n}function br(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=hr(),i-=mr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function yr(e,t,n,r,i){return r||(r=ue(e.doc,t.line)),gr(e,r,tr(e,r,t.ch,i),n)}function Or(e,t,n,r,i,o){function a(t,a){var s=ir(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,gr(e,r,s,n)}r=r||ue(e.doc,t.line),i||(i=rr(e,r));var s=ft(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var f=lt(s,c,l),d=ct,p=u(c,f,"before"==l);return null!=d&&(p.other=u(c,d,"before"!=l)),p}function xr(e,t){var n=0;t=Se(e.doc,t),e.options.lineWrapping||(n=Lr(e.display)*t.ch);var r=ue(e.doc,t.line),i=it(r)+qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var o=be(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function wr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Er(r.first,0,null,!0,-1);var i=me(r,n),o=r.first+r.size-1;if(i>o)return Er(r.first+r.size-1,ue(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=ue(r,i);;){var s=_r(e,a,i,t,n),c=Ye(a,s.ch+(s.xRel>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=ue(r,i=l.line)}}function Tr(e,t,n,r){r-=vr(t);var i=t.text.length,o=ce((function(t){return ir(e,n,t-1).bottom<=r}),i,0);return i=ce((function(t){return ir(e,n,t).top>r}),o,i),{begin:o,end:i}}function Sr(e,t,n,r){n||(n=rr(e,t));var i=gr(e,t,ir(e,n,r),"line").top;return Tr(e,t,n,i)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,i){i-=it(t);var o=rr(e,t),a=vr(t),s=0,c=t.text.length,l=!0,u=ft(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?Ar:jr)(e,t,n,o,u,r,i);l=1!=f.level,s=l?f.from:f.to-1,c=l?f.to:f.from-1}var d,p,h=null,m=null,v=ce((function(t){var n=ir(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),g=!1;if(m){var b=r-m.left<m.right-r,y=b==l;v=h+(y?0:1),p=y?"after":"before",d=b?m.left:m.right}else{l||v!=c&&v!=s||v++,p=0==v?"after":v==t.text.length?"before":ir(e,o,v-(l?1:0)).bottom+a<=i==l?"after":"before";var O=Or(e,be(n,v,p),"line",t,o);d=O.left,g=i<O.top||i>=O.bottom}return v=se(t.text,v,1),Er(n,v,p,g,r-d)}function jr(e,t,n,r,i,o,a){var s=ce((function(s){var c=i[s],l=1!=c.level;return Cr(Or(e,be(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=Or(e,be(n,l?c.from:c.to,l?"after":"before"),"line",t,r);Cr(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function Ar(e,t,n,r,i,o,a){var s=Tr(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,f=null,d=0;d<i.length;d++){var p=i[d];if(!(p.from>=l||p.to<=c)){var h=1!=p.level,m=ir(e,r,h?Math.min(l,p.to)-1:Math.max(c,p.from)).right,v=m<o?o-m+1e9:m-o;(!u||f>v)&&(u=p,f=v)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function kr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==or){or=k("pre");for(var t=0;t<49;++t)or.appendChild(document.createTextNode("x")),or.appendChild(k("br"));or.appendChild(document.createTextNode("x"))}A(e.measure,or);var n=or.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function Lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),n=k("pre",[t]);A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Rr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Nr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Nr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ir(e){var t=kr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Lr(e.display)-3);return function(i){if(nt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Mr(e){var t=e.doc,n=Ir(e);t.iter((function(e){var t=n(e);t!=e.height&&pe(e,t)}))}function Dr(e,t,n,r){var i=e.display;if(!n&&"true"==St(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var c,l=wr(e,o,a);if(r&&1==l.xRel&&(c=ue(e.doc,l.line).text).length==l.ch){var u=F(c,c.length,e.options.tabSize)-c.length;l=be(l.line,Math.max(0,Math.round((o-Kn(e.display).left)/Lr(e.display))-u))}return l}function Pr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Ur(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Fr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&Hr(e,s.head,i),c||Wr(e,s,o)}}return r}function Hr(e,t,n){var r=Or(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(k("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Br(e,t){return e.top-t.top||e.left-t.left}function Wr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Kn(e.display),s=a.left,c=Math.max(r.sizerWidth,Xn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=ue(i,t),d=f.text.length;function p(n,r){return yr(e,be(t,n),"div",f,r)}function h(t,n,r){var i=Sr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1);return p(a,o)[o]}var m=ft(f,i.direction);return st(m,n||0,null==r?d:r,(function(e,t,i,f){var v="ltr"==i,g=p(e,v?"left":"right"),b=p(t-1,v?"right":"left"),y=null==n&&0==e,O=null==r&&t==d,x=0==f,E=!m||f==m.length-1;if(b.top-g.top<=3){var w=(l?y:O)&&x,T=(l?O:y)&&E,S=w?s:(v?g:b).left,C=T?c:(v?b:g).right;u(S,g.top,C-S,g.bottom)}else{var _,j,A,k;v?(_=l&&y&&x?s:g.left,j=l?c:h(e,i,"before"),A=l?s:h(t,i,"after"),k=l&&O&&E?c:b.right):(_=l?h(e,i,"before"):s,j=!l&&y&&x?c:g.right,A=!l&&O&&E?s:b.left,k=l?h(t,i,"after"):c),u(_,g.top,j-_,g.bottom),g.bottom<b.top&&u(s,g.bottom,null,b.top),u(A,b.top,k-A,b.bottom)}(!o||Br(g,o)<0)&&(o=g),Br(b,o)<0&&(o=b),(!a||Br(g,a)<0)&&(a=g),Br(b,a)<0&&(a=b)})),{start:o,end:a}}var d=t.from(),p=t.to();if(d.line==p.line)f(d.line,d.ch,p.ch);else{var h=ue(i,d.line),m=ue(i,p.line),v=Qe(h)==Qe(m),g=f(d.line,d.ch,v?h.text.length+1:null).end,b=f(p.line,v?0:null,p.ch).start;v&&(g.top<b.top-2?(u(g.right,g.top,null,g.bottom),u(s,b.top,b.left,b.bottom)):u(g.right,g.top,b.left-g.right,g.bottom)),g.bottom<b.top&&u(s,g.bottom,null,b.top)}n.appendChild(o)}function zr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vr(e){e.state.focused||(e.display.input.focus(),qr(e))}function Gr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,$r(e))}),100)}function qr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(vt(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),zr(e))}function $r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(vt(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Kr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(s&&c<8){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var l=i.node.getBoundingClientRect();o=l.bottom-l.top}var u=i.line.height-o;if(o<2&&(o=kr(t)),(u>.005||u<-.005)&&(pe(i.line,o),Yr(i.line),i.rest))for(var f=0;f<i.rest.length;f++)Yr(i.rest[f])}}}function Yr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Xr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-qn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=me(t,r),a=me(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<o?(o=s,a=me(t,it(ue(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=a&&(o=me(t,it(ue(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Qr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Nr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Jr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ge(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(k("div",[k("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ki(e),!0}return!1}function Zr(e,t){if(!gt(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=k("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-qn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ei(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?be(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?be(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Or(e,t),c=n&&n!=t?Or(e,n):s;i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r};var l=ni(e,i),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(li(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(fi(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ti(e,t){var n=ni(e,t);null!=n.scrollTop&&li(e,n.scrollTop),null!=n.scrollLeft&&fi(e,n.scrollLeft)}function ni(e,t){var n=e.display,r=kr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+$n(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=c?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=Xn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(p?0:10)):t.right>d+f-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function ri(e,t){null!=t&&(si(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ii(e){si(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function oi(e,t,n){null==t&&null==n||si(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ai(e,t){si(e),e.curOp.scrollToPos=t}function si(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=xr(e,t.from),r=xr(e,t.to);ci(e,n,r,t.margin)}}function ci(e,t,n,r){var i=ni(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});oi(e,i.scrollLeft,i.scrollTop)}function li(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||qi(e,{top:t}),ui(e,t,!0),n&&qi(e),Ui(e,100))}function ui(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Qr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function di(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+$n(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var pi=function(e,t,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pt(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pt(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new H,this.disableVert=new H},pi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var hi=function(){};function mi(e,t){t||(t=di(e));var n=e.display.barWidth,r=e.display.barHeight;vi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Kr(e),vi(e,di(e)),n=e.display.barWidth,r=e.display.barHeight}function vi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}hi.prototype.update=function(){return{bottom:0,right:0}},hi.prototype.setScrollLeft=function(){},hi.prototype.setScrollTop=function(){},hi.prototype.clear=function(){};var gi={native:pi,null:hi};function bi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new gi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pt(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?fi(e,t):li(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var yi=0;function Oi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++yi},Cn(e.curOp)}function xi(e){var t=e.curOp;jn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ei(e)}))}function Ei(e){for(var t=e.ops,n=0;n<t.length;n++)wi(t[n]);for(var r=0;r<t.length;r++)Ti(t[r]);for(var i=0;i<t.length;i++)Si(t[i]);for(var o=0;o<t.length;o++)Ci(t[o]);for(var a=0;a<t.length;a++)_i(t[a])}function wi(e){var t=e.cm,n=t.display;Bi(t),e.updateMaxLine&&at(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&Vi(e.cm,e.update)}function Si(e){var t=e.cm,n=t.display;e.updatedDisplay&&Kr(t),e.barMeasure=di(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ci(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&fi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==N();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&mi(t,e.barMeasure),e.updatedDisplay&&Yi(t,e.barMeasure),e.selectionChanged&&zr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Vr(e.cm)}function _i(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Gi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&ui(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&fi(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=ei(t,Se(r,e.scrollToPos.from),Se(r,e.scrollToPos.to),e.scrollToPos.margin);Zr(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||vt(o[s],"hide");if(a)for(var c=0;c<a.length;++c)a[c].lines.length&&vt(a[c],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&vt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ji(e,t){if(e.curOp)return t();Oi(e);try{return t()}finally{xi(e)}}function Ai(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Oi(e);try{return t.apply(e,arguments)}finally{xi(e)}}}function ki(e){return function(){if(this.curOp)return e.apply(this,arguments);Oi(this);try{return e.apply(this,arguments)}finally{xi(this)}}}function Li(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Oi(t);try{return e.apply(this,arguments)}finally{xi(t)}}}function Ri(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ae&&et(e.doc,t)<i.viewTo&&Ii(e);else if(n<=i.viewFrom)Ae&&tt(e.doc,n+r)>i.viewFrom?Ii(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Ii(e);else if(t<=i.viewFrom){var o=Mi(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Ii(e)}else if(n>=i.viewTo){var a=Mi(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Ii(e)}else{var s=Mi(e,t,t,-1),c=Mi(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Ii(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Ni(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function Ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Mi(e,t,n,r){var i,o=Pr(e,t),a=e.display.view;if(!Ae||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c<o;c++)s+=a[c].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(et(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Di(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Pr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Tn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Pr(e,n)))),r.viewTo=n}function Pi(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ui(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,P(Fi,e))}function Fi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Zt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Gt(t.mode,r.state):null,c=Qt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&en(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ui(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ji(e,(function(){for(var t=0;t<i.length;t++)Ni(e,i[t],"text")}))}}var Hi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Xr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Xn(e),this.force=n,this.dims=Rr(e),this.events=[]};function Bi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function Wi(e){if(e.hasFocus())return null;var t=N();if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function zi(e){if(e&&e.activeElt&&e.activeElt!=N()&&(e.activeElt.focus(),e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Vi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Ii(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Pi(e))return!1;Jr(e)&&(Ii(e),t.dims=Rr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ae&&(o=et(e.doc,o),a=tt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Di(e,o,a),n.viewOffset=it(ue(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=Pi(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Wi(e);return c>4&&(n.lineDiv.style.display="none"),$i(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,zi(l),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ui(e,400)),n.updateLineNumbers=null,!0}function Gi(e,t){for(var n=t.viewport,r=!0;;r=!1){if((!r||!e.options.lineWrapping||t.oldDisplayWidth==Xn(e))&&(n&&null!=n.top&&(n={top:Math.min(e.doc.height+$n(e.display)-Qn(e),n.top)}),t.visible=Xr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo))break;if(!Vi(e,t))break;Kr(e);var i=di(e);Ur(e),mi(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qi(e,t){var n=new Hi(e,t);if(Vi(e,n)){Kr(e),Gi(e,n);var r=di(e);Ur(e),mi(e,r),Yi(e,r),n.finish()}}function $i(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,f=0;f<c.length;f++){var d=c[f];if(d.hidden);else if(d.node&&d.node.parentNode==o){while(a!=d.node)a=s(a);var p=i&&null!=t&&t<=u&&d.lineNumber;d.changes&&(B(d.changes,"gutter")>-1&&(p=!1),Rn(e,d,u,n)),p&&(j(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ge(e.options,u)))),a=d.node.nextSibling}else{var h=Hn(e,d,u,n);o.insertBefore(h,a)}u+=d.size}while(a)a=s(a)}function Ki(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}function Xi(e){var t=e.display.gutters,n=e.options.gutters;j(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(k("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",Ki(e)}function Qi(e){var t=B(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}Hi.prototype.signal=function(e,t){yt(e,t)&&this.events.push(arguments)},Hi.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)vt.apply(null,e.events[t])};var Ji=0,Zi=null;function eo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function to(e){var t=eo(e);return t.x*=Zi,t.y*=Zi,t}function no(e,t){var r=eo(t),i=r.x,o=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&y&&l)e:for(var f=t.target,p=a.view;f!=s;f=f.parentNode)for(var h=0;h<p.length;h++)if(p[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!d&&null!=Zi)return o&&u&&li(e,Math.max(0,s.scrollTop+o*Zi)),fi(e,Math.max(0,s.scrollLeft+i*Zi)),(!o||o&&u)&&xt(t),void(a.wheelStartX=null);if(o&&null!=Zi){var m=o*Zi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),qi(e,{top:v,bottom:g})}Ji<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Zi=(Zi*Ji+n)/(Ji+1),++Ji)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}s?Zi=-.53:n?Zi=15:f?Zi=-.7:p&&(Zi=-1/3);var ro=function(e,t){this.ranges=e,this.primIndex=t};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!Oe(r.anchor,i.anchor)||!Oe(r.head,i.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new io(xe(e.ranges[n].anchor),xe(e.ranges[n].head));return new ro(t,this.primIndex)},ro.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},ro.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(ye(t,i.from())>=0&&ye(e,i.to())<=0)return r}return-1};var io=function(e,t){this.anchor=e,this.head=t};function oo(e,t){var n=e[t];e.sort((function(e,t){return ye(e.from(),t.from())})),t=B(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(ye(o.to(),i.from())>=0){var a=we(o.from(),i.from()),s=Ee(o.to(),i.to()),c=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new io(c?s:a,c?a:s))}}return new ro(e,t)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?be(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(ye(e,t.from)<0)return e;if(ye(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),be(n,r)}function lo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(co(i.anchor,t),co(i.head,t)))}return oo(n,e.sel.primIndex)}function uo(e,t,n){return e.line==t.line?be(n.line,e.ch-t.ch+n.ch):be(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=be(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],c=uo(s.from,i,o),l=uo(so(s),i,o);if(i=s.to,o=l,"around"==n){var u=e.sel.ranges[a],f=ye(u.head,u.anchor)<0;r[a]=new io(f?l:c,f?c:l)}else r[a]=new io(c,c)}return new ro(r,e.sel.primIndex)}function po(e){e.doc.mode=Wt(e.options,e.doc.modeOption),ho(e)}function ho(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ui(e,100),e.state.modeGen++,e.curOp&&Ri(e)}function mo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){fn(e,n,i,r),kn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new un(l[o],i(o),r));return n}var s=t.from,c=t.to,l=t.text,u=ue(e,s.line),f=ue(e,c.line),d=X(l),p=i(l.length-1),h=c.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(mo(e,t)){var m=a(0,l.length-1);o(f,f.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==f)if(1==l.length)o(u,u.text.slice(0,s.ch)+d+u.text.slice(c.ch),p);else{var v=a(1,l.length-1);v.push(new un(d+u.text.slice(c.ch),p,r)),o(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,v)}else if(1==l.length)o(u,u.text.slice(0,s.ch)+l[0]+f.text.slice(c.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+l[0],i(0)),o(f,d+f.text.slice(c.ch),p);var g=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}kn(e,"change",e,t)}function go(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var c=o&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,e,c))}}}r(e,null,!0)}function bo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Mr(e),po(e),yo(e),e.options.lineWrapping||at(e),e.options.mode=t.modeOption,Ri(e)}function yo(e){("rtl"==e.doc.direction?I:_)(e.display.lineDiv,"CodeMirror-rtl")}function Oo(e){ji(e,(function(){yo(e),Ri(e)}))}function xo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Eo(e,t){var n={from:xe(t.from),to:so(t),text:fe(e,t.from,t.to)};return Ao(e,n,t.from.line,t.to.line+1),go(e,(function(e){return Ao(e,n,t.from.line,t.to.line+1)}),!0),n}function wo(e){while(e.length){var t=X(e);if(!t.ranges)break;e.pop()}}function To(e,t){return t?(wo(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}function So(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(i,i.lastOp==r)))a=X(o.changes),0==ye(t.from,t.to)&&0==ye(t.from,a.to)?a.to=so(t):o.changes.push(Eo(e,t));else{var c=X(i.done);c&&c.ranges||jo(e.sel,i.done),o={changes:[Eo(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||vt(e,"historyAdded")}function Co(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function _o(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Co(e,o,X(i.done),t))?i.done[i.done.length-1]=t:jo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&wo(i.undone)}function jo(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ao(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function ko(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Lo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(ko(n[i]));return r}function Ro(e,t){var n=Lo(e,t),r=Ue(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var c=a[s],l=0;l<o.length;++l)if(o[l].marker==c.marker)continue e;o.push(c)}else a&&(n[i]=a)}return n}function No(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var c=0;c<a.length;++c){var l=a[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(u=f.match(/^spans_(\d+)$/))&&B(t,Number(u[1]))>-1&&(X(s)[f]=l[f],delete l[f])}}}return r}function Io(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ye(t,i)<0;o!=ye(n,i)<0?(i=t,t=n):o!=ye(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Mo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Bo(e,new ro([Io(e.sel.primary(),t,n,i)],0),r)}function Do(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Io(e.sel.ranges[o],t[o],null,i);var a=oo(r,e.sel.primIndex);Bo(e,a,n)}function Po(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Bo(e,oo(i,e.sel.primIndex),r)}function Uo(e,t,n,r){Bo(e,ao(t,n),r)}function Fo(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new io(Se(e,t[r].anchor),Se(e,t[r].head))},origin:n&&n.origin};return vt(e,"beforeSelectionChange",e,r),e.cm&&vt(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oo(r.ranges,r.ranges.length-1):t}function Ho(e,t,n){var r=e.history.done,i=X(r);i&&i.ranges?(r[r.length-1]=t,Wo(e,t,n)):Bo(e,t,n)}function Bo(e,t,n){Wo(e,t,n),_o(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Wo(e,t,n){(yt(e,"beforeSelectionChange")||e.cm&&yt(e.cm,"beforeSelectionChange"))&&(t=Fo(e,t,n));var r=n&&n.bias||(ye(t.primary().head,e.sel.primary().head)<0?-1:1);zo(e,Go(e,t,r,!0)),n&&!1===n.scroll||!e.cm||ii(e.cm)}function zo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,bt(e.cm)),kn(e,"cursorActivity",e))}function Vo(e){zo(e,Go(e,e.sel,null,!1))}function Go(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],c=$o(e,a.anchor,s&&s.anchor,n,r),l=$o(e,a.head,s&&s.head,n,r);(i||c!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(c,l))}return i?oo(i,t.primIndex):t}function qo(e,t,n,r,i){var o=ue(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],c=s.marker;if((null==s.from||(c.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(vt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var l=c.find(r<0?1:-1),u=void 0;if((r<0?c.inclusiveRight:c.inclusiveLeft)&&(l=Ko(e,l,-r,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(u=ye(l,n))&&(r<0?u<0:u>0))return qo(e,l,t,r,i)}var f=c.find(r<0?-1:1);return(r<0?c.inclusiveLeft:c.inclusiveRight)&&(f=Ko(e,f,r,f.line==t.line?o:null)),f?qo(e,f,t,r,i):null}}return t}function $o(e,t,n,r,i){var o=r||1,a=qo(e,t,n,o,i)||!i&&qo(e,t,n,o,!0)||qo(e,t,n,-o,i)||!i&&qo(e,t,n,-o,!0);return a||(e.cantEdit=!0,be(e.first,0))}function Ko(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Se(e,be(t.line-1)):null:n>0&&t.ch==(r||ue(e,t.line)).text.length?t.line<e.first+e.size-1?be(t.line+1,0):null:new be(t.line,t.ch+n)}function Yo(e){e.setSelection(be(e.firstLine(),0),be(e.lastLine()),V)}function Xo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=Se(e,t)),n&&(r.to=Se(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),vt(e,"beforeChange",e,r),e.cm&&vt(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Qo(e,t,n){if(e.cm){if(!e.cm.curOp)return Ai(e.cm,Qo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"))||(t=Xo(e,t,!0),t)){var r=je&&!n&&He(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ye(t.from,t.to)){var n=lo(e,t);So(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Ue(e,t));var r=[];go(e,(function(e,n){n||-1!=B(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Ue(e,t))}))}}function Zo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l<s.length;l++)if(i=s[l],n?i.ranges&&!i.equals(e.sel):!i.ranges)break;if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(jo(i,c),n&&!i.equals(e.sel))return void Bo(e,i,{clearRedo:!1});a=i}var u=[];jo(a,c),c.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=t,f&&!Xo(e,r,!1))return s.length=0,{};u.push(Eo(e,r));var o=n?lo(e,r):X(s);ta(e,r,o,Ro(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];go(e,(function(e,t){t||-1!=B(a,e.history)||(aa(e.history,r),a.push(e.history)),ta(e,r,null,Ro(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=d(p);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Q(e.sel.ranges,(function(e){return new io(be(e.anchor.line+t,e.anchor.ch),be(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Ri(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Ni(e.cm,r,"gutter")}}function ta(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ai(e.cm,ta)(e,t,n,r);if(t.to.line<e.first)ea(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ea(e,i),t={from:be(e.first,0),to:be(t.to.line+i,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:be(o,ue(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=fe(e,t.from,t.to),n||(n=lo(e,t)),e.cm?na(e.cm,t,r):vo(e,t,r),Wo(e,n,V)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=he(Qe(ue(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&bt(e),vo(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=ot(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),ln(r,o.line),Ui(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Ri(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Ri(e,o.line,a.line+1,l):Ni(e,o.line,"text");var u=yt(e,"changes"),f=yt(e,"change");if(f||u){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&kn(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;(r||(r=n),ye(r,n)<0)&&(o=[r,n],n=o[0],r=o[1]);"string"==typeof t&&(t=e.splitLines(t)),Qo(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function oa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ia(o.ranges[s].anchor,t,n,r),ia(o.ranges[s].head,t,n,r)}else{for(var c=0;c<o.changes.length;++c){var l=o.changes[c];if(n<l.from.line)l.from=be(l.from.line+r,l.from.ch),l.to=be(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function aa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;oa(e.done,n,r,i),oa(e.undone,n,r,i)}function sa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=ue(e,Te(e,t)):i=he(t),null==i?null:(r(o,i)&&e.cm&&Ni(e.cm,i,n),o)}function ca(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function la(e){var t=this;this.children=e;for(var n=0,r=0,i=0;i<e.length;++i){var o=e[i];n+=o.chunkSize(),r+=o.height,o.parent=t}this.size=n,this.height=r,this.parent=null}io.prototype.from=function(){return we(this.anchor,this.head)},io.prototype.to=function(){return Ee(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var o=n.lines[r];n.height-=o.height,dn(o),kn(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},la.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),s=i.height;if(i.removeInner(e,a),n.height-=s-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ca))){var c=[];this.collapse(c),this.children=[new ca(c)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<=a){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,c=s;c<o.lines.length;){var l=new ca(o.lines.slice(c,c+=25));o.height-=l.height,r.children.splice(++i,0,l),l.parent=r}o.lines=o.lines.slice(0,s),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new la(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=B(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new la(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<a){var s=Math.min(t,a-e);if(o.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=a}}};var ua=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};function fa(e,t,n){it(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ri(e,n)}function da(e,t,n,r){var i=new ua(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!nt(e,t)){var r=it(t)<e.scrollTop;pe(t,t.height+Vn(i)),r&&ri(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&kn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:he(t)),i}ua.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=he(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var a=Vn(this);pe(r,Math.max(0,r.height-a)),t&&(ji(t,(function(){fa(t,r,-a),Ni(t,i,"widget")})),kn(t,"lineWidgetCleared",t,this,i))}},ua.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Vn(this)-t;i&&(nt(this.doc,r)||pe(r,r.height+i),n&&ji(n,(function(){n.curOp.forceUpdate=!0,fa(n,r,i),kn(n,"lineWidgetChanged",n,e,he(r))})))},Ot(ua);var pa=0,ha=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++pa};function ma(e,t,n,r,i){if(r&&r.shared)return ga(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ai(e.cm,ma)(e,t,n,r,i);var o=new ha(e,i),a=ye(t,n);if(r&&U(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xe(e,t.line,t,n,o)||t.line!=n.line&&Xe(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Le()}o.addToHistory&&So(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(e){l&&o.collapsed&&!l.options.lineWrapping&&Qe(e)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&pe(e,0),Me(e,new Re(o,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nt(e,t)&&pe(t,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(ke(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++pa,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)Ri(l,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var u=t.line;u<=n.line;u++)Ni(l,u,"text");o.atomic&&Vo(l.doc),kn(l,"markerAdded",l,o)}return o}ha.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&Oi(t),yt(this,"clear")){var r=this.find();r&&kn(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;a<this.lines.length;++a){var s=e.lines[a],c=Ne(s.markedSpans,e);t&&!e.collapsed?Ni(t,he(s),"text"):t&&(null!=c.to&&(o=he(s)),null!=c.from&&(i=he(s))),s.markedSpans=Ie(s.markedSpans,c),null==c.from&&e.collapsed&&!nt(e.doc,s)&&t&&pe(s,kr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Qe(e.lines[l]),f=ot(u);f>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Ri(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Vo(t.doc)),t&&kn(t,"markerCleared",t,this,i,o),n&&xi(t),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){var n,r,i=this;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var a=i.lines[o],s=Ne(a.markedSpans,i);if(null!=s.from&&(n=be(t?a:he(a),s.from),-1==e))return n;if(null!=s.to&&(r=be(t?a:he(a),s.to),1==e))return r}return n&&{from:n,to:r}},ha.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ji(r,(function(){var i=t.line,o=he(t.line),a=nr(r,o);if(a&&(fr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=Vn(n)-s;c&&pe(i,i.height+c)}kn(r,"markerChanged",r,e)}))},ha.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ha.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ot(ha);var va=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};function ga(e,t,n,r,i){r=U(r),r.shared=!1;var o=[ma(e,t,n,r,i)],a=o[0],s=r.widgetNode;return go(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ma(e,Se(e,t),Se(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;a=X(o)})),new va(o,a)}function ba(e){return e.findMarks(be(e.first,0),e.clipPos(be(e.lastLine())),(function(e){return e.parent}))}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ye(o,a)){var s=ma(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Oa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];go(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();kn(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},Ot(va);var xa=0,Ea=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),la.call(this,[new ca([new un("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=be(r,0);this.sel=ao(a),this.history=new xo(null),this.id=++xa,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),vo(this,{from:a,to:a,text:t}),Bo(this,ao(a),V)};Ea.prototype=ee(la.prototype,{constructor:Ea,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=de(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Li((function(e){var t=be(this.first,0),n=this.first+this.size-1;Qo(this,{from:t,to:be(n,ue(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&oi(this.cm,0,0),Bo(this,ao(t),V)})),replaceRange:function(e,t,n,r){t=Se(this,t),n=n?Se(this,n):t,ra(this,e,t,n,r)},getRange:function(e,t,n){var r=fe(this,Se(this,e),Se(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(ve(this,e))return ue(this,e)},getLineNumber:function(e){return he(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=ue(this,e)),Qe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Se(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Li((function(e,t,n){Uo(this,Se(this,"number"==typeof e?be(e,t||0):e),null,n)})),setSelection:Li((function(e,t,n){Uo(this,Se(this,e),Se(this,t||e),n)})),extendSelection:Li((function(e,t,n){Mo(this,Se(this,e),t&&Se(this,t),n)})),extendSelections:Li((function(e,t){Do(this,_e(this,e),t)})),extendSelectionsBy:Li((function(e,t){var n=Q(this.sel.ranges,e);Do(this,_e(this,n),t)})),setSelections:Li((function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new io(Se(r,e[o].anchor),Se(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Bo(this,oo(i,t),n)}})),addSelection:Li((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(Se(this,e),Se(this,t||e))),Bo(this,oo(r,r.length-1),n)})),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=fe(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=fe(t,r[i].from(),r[i].to());!1!==e&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Li((function(e,t,n){for(var r=this,i=[],o=this.sel,a=0;a<o.ranges.length;a++){var s=o.ranges[a];i[a]={from:s.from(),to:s.to(),text:r.splitLines(e[a]),origin:n}}for(var c=t&&"end"!=t&&fo(this,i,t),l=i.length-1;l>=0;l--)Qo(r,i[l]);c?Ho(this,c):this.cm&&ii(this.cm)})),undo:Li((function(){Zo(this,"undo")})),redo:Li((function(){Zo(this,"redo")})),undoSelection:Li((function(){Zo(this,"undo",!0)})),redoSelection:Li((function(){Zo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new xo(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:No(this.history.done),undone:No(this.history.undone)}},setHistory:function(e){var t=this.history=new xo(this.history.maxGeneration);t.done=No(e.done.slice(0),null,!0),t.undone=No(e.undone.slice(0),null,!0)},setGutterMarker:Li((function(e,t,n){return sa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ie(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Li((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&sa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ie(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!ve(this,e))return null;if(t=e,e=ue(this,e),!e)return null}else if(t=he(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Li((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Li((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Li((function(e,t,n){return da(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ma(this,Se(this,e),Se(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Se(this,e),ma(this,e,e,n,"bookmark")},findMarksAt:function(e){e=Se(this,e);var t=[],n=ue(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Se(this,e),t=Se(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var c=a[s];null!=c.to&&i==e.line&&e.ch>=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),Se(this,be(n,t))},indexFromPos:function(e){e=Se(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ea(de(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ea(de(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ya(r,ba(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Ps&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Oa(ba(t));break}}if(e.history==this.history){var i=[e.id];go(e,(function(e){return i.push(e.id)}),!0),e.history=new xo(null),e.history.done=No(this.history.done,i),e.history.undone=No(this.history.undone,i)}},iterLinkedDocs:function(e){go(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Rt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Li((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Oo(this.cm))}))}),Ea.prototype.eachLine=Ea.prototype.iter;var wa=0;function Ta(e){var t=this;if(_a(t),!gt(t,e)&&!Gn(t.display,e)){xt(e),s&&(wa=+new Date);var n=Dr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,c=function(e,r){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=Ai(t,(function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){n=Se(t.doc,n);var c={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Qo(t.doc,c),Ho(t.doc,ao(n,so(c)))}})),s.readAsText(e)}},l=0;l<i;++l)c(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Wo(t.doc,ao(n,n)),f)for(var d=0;d<f.length;++d)ra(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Sa(e,t){if(s&&(!e.state.draggingText||+new Date-wa<100))Tt(t);else if(!gt(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=k("img",null,null,"position: fixed; left: 0; top: 0;");n.src="",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ca(e,t){var n=Dr(e,t);if(n){var r=document.createDocumentFragment();Hr(e,n,r),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}function _a(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ja(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}var Aa=!1;function ka(){Aa||(La(),Aa=!0)}function La(){var e;pt(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,ja(Ra)}),100))})),pt(window,"blur",(function(){return ja($r)}))}function Ra(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Na={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ia=0;Ia<10;Ia++)Na[Ia+48]=Na[Ia+96]=String(Ia);for(var Ma=65;Ma<=90;Ma++)Na[Ma]=String.fromCharCode(Ma);for(var Da=1;Da<=12;Da++)Na[Da+111]=Na[Da+63235]="F"+Da;var Pa={};function Ua(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Fa(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),Ua),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var c=t[s];if(c){if(c!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function Ha(e,t,n,r){t=Va(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ha(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ha(e,t.fallthrough[o],n,r);if(a)return a}}}function Ba(e){var t="string"==typeof e?e:Na[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Wa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function za(e,t){if(d&&34==e.keyCode&&e["char"])return!1;var n=Na[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Wa(n,e,t))}function Va(e){return"string"==typeof e?Pa[e]:e}function Ga(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=t(n[i]);while(r.length&&ye(o.from,X(r).to)<=0){var a=r.pop();if(ye(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ji(e,(function(){for(var t=r.length-1;t>=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ii(e)}))}function qa(e,t,n){var r=se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function $a(e,t,n){var r=qa(e,t.ch,n);return null==r?null:new be(t.line,r,n<0?"after":"before")}function Ka(e,t,n,r,i){if(e){var o=ft(n,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],c=i<0==(1==s.level),l=c?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=rr(t,n);a=i<0?n.text.length-1:0;var f=ir(t,u,a).top;a=ce((function(e){return ir(t,u,e).top==f}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=qa(n,a,1))}else a=i<0?s.to:s.from;return new be(r,a,l)}}return new be(r,i<0?n.text.length:0,i<0?"before":"after")}function Ya(e,t,n,r){var i=ft(t,e.doc.direction);if(!i)return $a(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lt(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return $a(t,n,r);var s,c=function(e,n){return qa(t,e instanceof be?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||rr(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,d=c(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=u.end:d>=a.from&&d>=u.begin)){var p=f?"before":"after";return new be(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new be(n.line,c(e,1),"before"):new be(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:c(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},m=h(o+r,r,u);if(m)return m;var v=r>0?u.end:c(u.begin,-1);return null==v||r>0&&v==t.text.length||(m=h(r>0?0:i.length-1,r,l(v)),!m)?null:m}Pa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Pa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Pa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Pa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Pa["default"]=y?Pa.macDefault:Pa.pcDefault;var Xa={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ga(e,(function(t){if(t.empty()){var n=ue(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:be(t.head.line+1,0)}:{from:t.head,to:be(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ga(e,(function(t){return{from:be(t.from().line,0),to:Se(e.doc,be(t.to().line+1,0))}}))},delLineLeft:function(e){return Ga(e,(function(e){return{from:be(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ga(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}}))},delWrappedLineRight:function(e){return Ga(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(be(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(be(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Qa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Za(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Za(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=F(e.getLine(o.line),o.ch,r);t.push(Y(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ji(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=ue(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new be(i.line,i.ch-1)),i.ch>0)i=new be(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),be(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ue(e.doc,i.line-1).text;a&&(i=new be(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),be(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ji(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ii(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qa(e,t){var n=ue(e.doc,t),r=Qe(n);return r!=n&&(t=he(r)),Ka(!0,e,r,t,1)}function Ja(e,t){var n=ue(e.doc,t),r=Je(n);return r!=n&&(t=he(r)),Ka(!0,e,n,t,-1)}function Za(e,t){var n=Qa(e,t.line),r=ue(e.doc,n.line),i=ft(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return be(n.line,a?0:o,n.sticky)}return n}function es(e,t,n){if("string"==typeof t&&(t=Xa[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=z}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ts(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ha(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ha(t,e.options.extraKeys,n,e)||Ha(t,e.options.keyMap,n,e)}var ns=new H;function rs(e,t,n,r){var i=e.state.keySeq;if(i){if(Ba(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ns.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),is(e,i+" "+t,n,r))return!0}return is(e,t,n,r)}function is(e,t,n,r){var i=ts(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&kn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xt(n),zr(e)),!!i}function os(e,t){var n=za(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?rs(e,"Shift-"+n,t,(function(t){return es(e,t,!0)}))||rs(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return es(e,t)})):rs(e,n,t,(function(t){return es(e,t)})))}function as(e,t,n){return rs(e,"'"+n+"'",t,(function(t){return es(e,t,!0)}))}var ss=null;function cs(e){var t=this;if(t.curOp.focus=N(),!gt(t,e)){s&&c<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=os(t,e);d&&(ss=r?n:null,r||88!=n||It||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ls(t)}}function ls(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),mt(document,"keyup",n),mt(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n)}function us(e){16==e.keyCode&&(this.doc.sel.shift=!1),gt(this,e)}function fs(e){var t=this;if(!(Gn(t.display,e)||gt(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ss)return ss=null,void xt(e);if(!d||e.which&&!(e.which<10)||!os(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(as(t,e,i)||t.display.input.onKeyPress(e))}}}var ds,ps,hs=400,ms=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return ps&&ps.compare(n,e,t)?(ds=ps=null,"triple"):ds&&ds.compare(n,e,t)?(ps=new ms(n,e,t),ds=null,"double"):(ds=new ms(n,e,t),ps=null,"single")}function gs(e){var t=this,n=t.display;if(!(gt(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Cs(t,e)){var r=Dr(t,e),i=Ct(e),o=r?vs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&bs(t,i,r,o,e)||(1==i?r?Os(t,r,o,e):St(e)==n.scroller&&xt(e):2==i?(r&&Mo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(T?_s(t,e):Gr(t)))}}function bs(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,rs(e,Wa(o,i),i,(function(t){if("string"==typeof t&&(t=Xa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=z}finally{e.state.suppressEdits=!1}return r}))}function ys(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=O?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function Os(e,t,n,r){s?setTimeout(P(Vr,e),0):e.curOp.focus=N();var i,o=ys(e,n,r),a=e.doc.sel;e.options.dragDrop&&At&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(ye((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(ye(i.to(),t)>0||t.xRel<0)?xs(e,r,t,o):ws(e,r,t,o)}function xs(e,t,n,r){var i=e.display,o=!1,a=Ai(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,mt(i.wrapper.ownerDocument,"mouseup",a),mt(i.wrapper.ownerDocument,"mousemove",u),mt(i.scroller,"dragstart",f),mt(i.scroller,"drop",a),o||(xt(t),r.addNew||Mo(e.doc,n,null,null,r.extend),l||s&&9==c?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pt(i.wrapper.ownerDocument,"mouseup",a),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",a),Gr(e),setTimeout((function(){return i.input.focus()}),20)}function Es(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(be(t.line,0),Se(e.doc,be(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function ws(e,t,n,r){var i=e.display,o=e.doc;xt(t);var a,s,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?l[s]:new io(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new io(n,n)),n=Dr(e,t,!0,!0),s=-1;else{var u=Es(e,n,r.unit);a=r.extend?Io(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,Bo(o,oo(l.concat([a]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Bo(o,oo(l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Po(o,s,a,G):(s=0,Bo(o,new ro([a],0),G),c=o.sel);var f=n;function d(t){if(0!=ye(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,u=F(ue(o,n.line).text,n.ch,l),d=F(ue(o,t.line).text,t.ch,l),p=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=ue(o,m).text,b=$(g,p,l);p==h?i.push(new io(be(m,b),be(m,b))):g.length>b&&i.push(new io(be(m,b),be(m,$(g,h,l))))}i.length||i.push(new io(n,n)),Bo(o,oo(c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,O=a,x=Es(e,t,r.unit),E=O.anchor;ye(x.anchor,E)>0?(y=x.head,E=we(O.from(),x.anchor)):(y=x.anchor,E=Ee(O.to(),x.head));var w=c.ranges.slice(0);w[s]=Ts(e,new io(Se(o,E),y)),Bo(o,oo(w,s),G)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(t){var n=++h,a=Dr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ye(a,f)){e.curOp.focus=N(),d(a);var s=Xr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Ai(e,(function(){h==n&&m(t)})),150)}else{var c=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;c&&setTimeout(Ai(e,(function(){h==n&&(i.scroller.scrollTop+=c,m(t))})),50)}}function v(t){e.state.selectingText=!1,h=1/0,xt(t),i.input.focus(),mt(i.wrapper.ownerDocument,"mousemove",g),mt(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=Ai(e,(function(e){0!==e.buttons&&Ct(e)?m(e):v(e)})),b=Ai(e,v);e.state.selectingText=b,pt(i.wrapper.ownerDocument,"mousemove",g),pt(i.wrapper.ownerDocument,"mouseup",b)}function Ts(e,t){var n=t.anchor,r=t.head,i=ue(e.doc,n.line);if(0==ye(n,r)&&n.sticky==r.sticky)return t;var o=ft(i);if(!o)return t;var a=lt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=lt(o,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?f<0:f>0}var d=o[l+(c?-1:0)],p=c==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new io(new be(n.line,h,m),r)}function Ss(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xt(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!yt(e,n))return wt(t);o-=s.top-a.viewOffset;for(var c=0;c<e.options.gutters.length;++c){var l=a.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i){var u=me(e.doc,o),f=e.options.gutters[c];return vt(e,n,e,u,f,t),wt(t)}}}function Cs(e,t){return Ss(e,t,"gutterClick",!0)}function _s(e,t){Gn(e.display,t)||js(e,t)||gt(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function js(e,t){return!!yt(e,"gutterContextMenu")&&Ss(e,t,"gutterContextMenu",!1)}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),pr(e)}ms.prototype.compare=function(e,t,n){return this.time+hs>e&&0==ye(t,this.pos)&&n==this.button};var ks={toString:function(){return"CodeMirror.Init"}},Ls={},Rs={};function Ns(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=ks&&i(e,t,n)}:i)}e.defineOption=n,e.Init=ks,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,po(e)}),!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ho(e),pr(e),Ri(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(be(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],be(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ks&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){As(e),Is(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Va(t),i=n!=ks&&Va(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ds,!0),n("gutters",[],(function(e){Qi(e.options),Is(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Nr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return mi(e)}),!0),n("scrollbarStyle","native",(function(e){bi(e),mi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e){Qi(e.options),Is(e)}),!0),n("firstLineNumber",1,Is,!0),n("lineNumberFormatter",(function(e){return e}),Is,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,(function(e,t){"nocursor"==t&&($r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ms),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ho,!0),n("addModeClass",!1,ho,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,ho,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0)}function Is(e){Xi(e),Ri(e),Qr(e)}function Ms(e,t,n){var r=n&&n!=ks;if(!t!=!r){var i=e.display.dragFunctions,o=t?pt:mt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ds(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),at(e)),Mr(e),Ri(e),pr(e),setTimeout((function(){return mi(e)}),100)}function Ps(e,t){var n=this;if(!(this instanceof Ps))return new Ps(e,t);this.options=t=t?U(t):{},U(Ls,t,!1),Qi(t);var r=t.value;"string"==typeof r?r=new Ea(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ps.inputStyles[t.inputStyle](this),o=this.display=new le(e,r,i);for(var a in o.wrapper.CodeMirror=this,Xi(this),As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!b&&o.input.focus(),s&&c<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Us(this),ka(),Oi(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!b||this.hasFocus()?setTimeout(P(qr,this),20):$r(this),Rs)Rs.hasOwnProperty(a)&&Rs[a](n,t[a],ks);Jr(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Fs.length;++u)Fs[u](n);xi(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Us(e){var t=e.display;pt(t.scroller,"mousedown",Ai(e,gs)),pt(t.scroller,"dblclick",s&&c<11?Ai(e,(function(t){if(!gt(e,t)){var n=Dr(e,t);if(n&&!Cs(e,t)&&!Gn(e.display,t)){xt(t);var r=e.findWordAt(n);Mo(e.doc,r.anchor,r.head)}}})):function(t){return gt(e,t)||xt(t)}),T||pt(t.scroller,"contextmenu",(function(t){return _s(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function a(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pt(t.scroller,"touchstart",(function(i){if(!gt(e,i)&&!o(i)&&!Cs(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pt(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pt(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,s=e.coordsChar(t.activeTouch,"page");o=!r.prev||a(r,r.prev)?new io(s,s):!r.prev.prev||a(r,r.prev.prev)?e.findWordAt(s):new io(be(s.line,0),Se(e.doc,be(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),xt(n)}i()})),pt(t.scroller,"touchcancel",i),pt(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(li(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),vt(e,"scroll",e))})),pt(t.scroller,"mousewheel",(function(t){return no(e,t)})),pt(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),pt(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){gt(e,t)||Tt(t)},over:function(t){gt(e,t)||(Ca(e,t),Tt(t))},start:function(t){return Sa(e,t)},drop:Ai(e,Ta),leave:function(t){gt(e,t)||_a(e)}};var l=t.input.getField();pt(l,"keyup",(function(t){return us.call(e,t)})),pt(l,"keydown",Ai(e,cs)),pt(l,"keypress",Ai(e,fs)),pt(l,"focus",(function(t){return qr(e,t)})),pt(l,"blur",(function(t){return $r(e,t)}))}Ps.defaults=Ls,Ps.optionHandlers=Rs;var Fs=[];function Hs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Zt(e,t).state:n="prev");var a=e.options.tabSize,s=ue(o,t),c=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(l=o.mode.indent(i,s.text.slice(u.length),s.text),l==z||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?F(ue(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/a);p;--p)d+=a,f+="\t";if(d<l&&(f+=Y(l-d)),f!=u)return ra(o,f,be(t,0),be(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var v=be(t,u.length);Po(o,h,new io(v,v));break}}}Ps.defineInitHook=function(e){return Fs.push(e)};var Bs=null;function Ws(e){Bs=e}function zs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a,s=e.state.pasteIncoming||"paste"==i,c=Rt(t),l=null;if(s&&r.ranges.length>1)if(Bs&&Bs.text.join("\n")==t){if(r.ranges.length%Bs.text.length==0){l=[];for(var u=0;u<Bs.text.length;u++)l.push(o.splitLines(Bs.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=Q(c,(function(e){return[e]})));for(var f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],p=d.from(),h=d.to();d.empty()&&(n&&n>0?p=be(p.line,p.ch-n):e.state.overwrite&&!s?h=be(h.line,Math.min(ue(o,h.line).text.length,h.ch+X(c).length)):Bs&&Bs.lineWise&&Bs.text.join("\n")==t&&(p=h=be(p.line,0))),a=e.curOp.updateInput;var m={from:p,to:h,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming?"cut":"+input")};Qo(e.doc,m),kn(e,"inputRead",e,m)}t&&!s&&Gs(e,t),ii(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Vs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ji(t,(function(){return zs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Hs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ue(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Hs(e,i.head.line,"smart"));a&&kn(e,"electricInput",e,i.head.line)}}}function qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:be(i,0),head:be(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function $s(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Ks(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),$s(e),t}function Ys(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Ai(this,t[e])(this,n,i),vt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Va(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ki((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Ri(this)})),removeOverlay:ki((function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void Ri(t)}})),indentLine:ki((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ve(this.doc,e)&&Hs(this,e,t,n)})),indentSelection:ki((function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Hs(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&ii(t));else{var a=o.from(),s=o.to(),c=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=c;l<r;++l)Hs(t,l,e);var u=t.doc.sel.ranges;0==a.ch&&n.length==u.length&&u[i].from().ch>0&&Po(t.doc,i,new io(a,u[i].to()),V)}}})),getTokenAt:function(e,t){return on(this,e,t)},getLineTokens:function(e,t){return on(this,be(e),t,!0)},getTokenTypeAt:function(e){e=Se(this.doc,e);var t,n=Jt(this,ue(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],a=this.getModeAt(e);if("string"==typeof a[t])o[a[t]]&&i.push(o[a[t]]);else if(a[t])for(var s=0;s<a[t].length;s++){var c=o[a[t][s]];c&&i.push(c)}else a.helperType&&o[a.helperType]?i.push(o[a.helperType]):o[a.name]&&i.push(o[a.name]);for(var l=0;l<o._global.length;l++){var u=o._global[l];u.pred(a,r)&&-1==B(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=Te(n,null==e?n.first+n.size-1:e),Zt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==o(e)?Se(this.doc,e):e?r.from():r.to(),Or(this,n,t||"page")},charCoords:function(e,t){return yr(this,Se(this.doc,e),t||"page")},coordsChar:function(e,t){return e=br(this,e,t||"page"),wr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=br(this,{top:e,left:0},t||"page").top,me(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=ue(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-it(r):0)},defaultTextHeight:function(){return kr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=Or(this,Se(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var c=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ti(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ki(cs),triggerOnKeyPress:ki(fs),triggerOnKeyUp:us,triggerOnMouseDown:ki(gs),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:ki((function(e){Gs(this,e)})),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=Se(this.doc,e),s=0;s<t;++s)if(a=Xs(i.doc,a,o,n,r),a.hitSide)break;return a},moveH:ki((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Xs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:ki((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ga(this,(function(n){var i=Xs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=this,o=1,a=r;t<0&&(o=-1,t=-t);for(var s=Se(this.doc,e),c=0;c<t;++c){var l=Or(i,s,"div");if(null==a?a=l.left:l.left=a,s=Qs(i,l,o,n),s.hitSide)break}return s},moveV:ki((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Or(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var c=Qs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ri(n,yr(n,c,"div").top-s.top),c}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=this.doc,n=ue(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=re(a,o)?function(e){return re(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!re(e)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new io(be(e.line,r),be(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),vt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ki((function(e,t){oi(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Qn(this),clientWidth:Xn(this)}},scrollIntoView:ki((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:be(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ai(this,e):ci(this,e.from,e.to,e.margin)})),setSize:ki((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Ni(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,vt(this,"refresh",this)})),operation:function(e){return ji(this,e)},startOperation:function(){return Oi(this)},endOperation:function(){return xi(this)},refresh:ki((function(){var e=this.display.cachedTextHeight;Ri(this),this.curOp.forceUpdate=!0,pr(this),oi(this,this.doc.scrollLeft,this.doc.scrollTop),Ki(this),(null==e||Math.abs(e-kr(this.display))>.5)&&Mr(this),vt(this,"refresh",this)})),swapDoc:ki((function(e){var t=this.doc;return t.cm=null,bo(this,e),pr(this),this.display.input.reset(),oi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,kn(this,"swapDoc",this,t),t})),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ot(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Xs(e,t,n,r,i){var o=t,a=n,s=ue(e,t.line);function c(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new be(r,t.ch,t.sticky),s=ue(e,r))}function l(r){var o;if(o=i?Ya(e.cm,s,t,n):$a(s,t,n),null==o){if(r||!c())return!1;t=Ka(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!l(!p))break;var h=s.text.charAt(t.ch)||"\n",m=re(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!p))break}var v=$o(e,t,o,a,!0);return Oe(o,v)&&(v.hitSide=!0),v}function Qs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*kr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=wr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(e,t){var n=nr(e,t.line);if(!n||n.hidden)return null;var r=ue(e.doc,t.line),i=Zn(n,r,t.line),o=ft(r,e.doc.direction),a="left";if(o){var s=lt(o,t.ch);a=s%2?"right":"left"}var c=sr(i.map,t.ch,a);return c.offset="right"==c.collapse?c.end:c.start,c}function ec(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tc(e,t){return t&&(e.bad=!0),e}function nc(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(e){return function(t){return t.id==e}}function u(){a&&(o+=s,c&&(o+=s),a=c=!1)}function f(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(be(r,0),be(i+1,0),l(+p));return void(h.length&&(o=h[0].find(0))&&f(fe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var v=0;v<t.childNodes.length;v++)d(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),m&&(a=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(d(t),t==n)break;t=t.nextSibling,c=!1}return o}function rc(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return tc(e.clipPos(be(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return ic(o,t,n)}}function ic(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!R(r,t))return tc(be(he(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return tc(be(he(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?c.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=he(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),be(u,f)}}}var f=u(a,s,n);if(f)return tc(f,i);for(var d=s.nextSibling,p=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(f=u(d,d.firstChild,0),f)return tc(be(f.line,f.ch-p),i);p+=d.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(f=u(h,h.firstChild,-1),f)return tc(be(f.line,f.ch+m),i);m+=h.textContent.length}}Js.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!gt(r,e)){if(r.somethingSelected())Ws({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Ws({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Bs.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Ks(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Bs.text.join("\n");var c=document.activeElement;D(s),setTimeout((function(){r.display.lineSpace.removeChild(a),c.focus(),c==i&&n.showPrimarySelection()}),50)}}$s(i,r.options.spellcheck),pt(i,"paste",(function(e){gt(r,e)||Vs(e,r)||c<=11&&setTimeout(Ai(r,(function(){return t.updateFromDOM()})),20)})),pt(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pt(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pt(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pt(i,"touchstart",(function(){return n.forceCompositionEnd()})),pt(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pt(i,"copy",o),pt(i,"cut",o)},Js.prototype.prepareSelection=function(){var e=Fr(this.cm,!1);return e.focus=this.cm.state.focused,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=rc(t,e.anchorNode,e.anchorOffset),s=rc(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ye(we(a,s),i)||0!=ye(Ee(a,s),o)){var c=t.display.view,l=i.line>=t.display.viewFrom&&Zs(t,i)||{node:c[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Zs(t,o);if(!u){var f=c[c.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(l&&u){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=C(l.node,l.offset,u.offset,u.node)}catch(m){}p&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():ji(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&f&&this.cm.options.gutters.length&&ec(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rc(t,e.anchorNode,e.anchorOffset),r=rc(t,e.focusNode,e.focusOffset);n&&r&&ji(t,(function(){Bo(t.doc,ao(n,r),V),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=be(a.line-1,ue(r.doc,a.line-1).length)),s.ch==ue(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=be(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Pr(r,a.line))?(t=he(i.view[0].line),n=i.view[0].node):(t=he(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=Pr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=he(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(nc(r,n,l,t,c)),d=fe(r.doc,be(t,0),be(c,ue(r.doc,c).text.length));while(f.length>1&&d.length>1)if(X(f)==X(d))f.pop(),d.pop(),c--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);while(p<g&&m.charCodeAt(p)==v.charCodeAt(p))++p;var b=X(f),y=X(d),O=Math.min(b.length-(1==f.length?p:0),y.length-(1==d.length?p:0));while(h<O&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1))++h;if(1==f.length&&1==d.length&&t==a.line)while(p&&p>a.ch&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1))p--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=be(t,p),E=be(c,d.length?X(d).length-h:0);return f.length>1||f[0]||ye(x,E)?(ra(r.doc,f,x,E,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ji(this.cm,(function(){return Ri(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ai(this.cm,zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var oc=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null};function ac(e,t){if(t=t?U(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=N();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pt(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(c){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(mt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ps((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function sc(e){e.off=mt,e.on=pt,e.wheelEventPixels=to,e.Doc=Ea,e.splitLines=Rt,e.countColumn=F,e.findColumn=$,e.isWordChar=ne,e.Pass=z,e.signal=vt,e.Line=un,e.changeEnd=so,e.scrollbarModel=gi,e.Pos=be,e.cmpPos=ye,e.modes=Pt,e.mimeModes=Ut,e.resolveMode=Bt,e.getMode=Wt,e.modeExtensions=zt,e.extendMode=Vt,e.copyState=Gt,e.startState=$t,e.innerMode=qt,e.commands=Xa,e.keyMap=Pa,e.keyName=za,e.isModifierKey=Ba,e.lookupKey=Ha,e.normalizeKeyMap=Fa,e.StringStream=Kt,e.SharedTextMarker=va,e.TextMarker=ha,e.LineWidget=ua,e.e_preventDefault=xt,e.e_stopPropagation=Et,e.e_stop=Tt,e.addClass=I,e.contains=R,e.rmClass=_,e.keyNames=Na}oc.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!gt(r,e)){if(r.somethingSelected())Ws({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Ws({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),D(i))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),pt(i,"input",(function(){s&&c>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pt(i,"paste",(function(e){gt(r,e)||Vs(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())})),pt(i,"cut",o),pt(i,"copy",o),pt(e.scroller,"paste",(function(t){Gn(e,t)||gt(r,t)||(r.state.pasteIncoming=!0,n.focus())})),pt(e.lineSpace,"selectstart",(function(t){Gn(e,t)||xt(t)})),pt(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},oc.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},oc.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Fr(e);if(e.options.moveInputWithCursor){var i=Or(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},oc.prototype.showSelection=function(e){var t=this.cm,n=t.display;A(n.cursorDiv,e.cursors),A(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},oc.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),s&&c>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&c>=9&&(this.hasSelection=null))}},oc.prototype.getField=function(){return this.textarea},oc.prototype.supportsTouch=function(){return!1},oc.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},oc.prototype.blur=function(){this.textarea.blur()},oc.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oc.prototype.receivedFocus=function(){this.slowPoll()},oc.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},oc.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},oc.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Nt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(s&&c>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var a=0,l=Math.min(r.length,i.length);while(a<l&&r.charCodeAt(a)==i.charCodeAt(a))++a;return ji(t,(function(){zs(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},oc.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oc.prototype.onKeyPress=function(){s&&c>=9&&(this.hasSelection=null),this.fastPoll()},oc.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=Dr(n,e),a=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Ai(n,Bo)(n.doc,ao(o),V);var f=i.style.cssText,p=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var h,m=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n      z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(h=window.scrollY),r.input.focus(),l&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&c>=9&&g(),T){Tt(e);var v=function e(){mt(window,"mouseup",e),setTimeout(b,20)};pt(window,"mouseup",v)}else setTimeout(b,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,s&&c<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),null!=i.selectionStart){(!s||s&&c<9)&&g();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ai(n,Yo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},oc.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},oc.prototype.setUneditable=function(){},oc.prototype.needsContentAttribute=!1,Ns(Ps),Ys(Ps);var cc="iter insert remove copy getEditor constructor".split(" ");for(var lc in Ea.prototype)Ea.prototype.hasOwnProperty(lc)&&B(cc,lc)<0&&(Ps.prototype[lc]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ea.prototype[lc]));return Ot(Ea),Ps.inputStyles={textarea:oc,contenteditable:Js},Ps.defineMode=function(e){Ps.defaults.mode||"null"==e||(Ps.defaults.mode=e),Ft.apply(this,arguments)},Ps.defineMIME=Ht,Ps.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ps.defineMIME("text/plain","null"),Ps.defineExtension=function(e,t){Ps.prototype[e]=t},Ps.defineDocExtension=function(e,t){Ea.prototype[e]=t},Ps.fromTextArea=ac,sc(Ps),Ps.version="5.39.2",Ps}))},"36c6":function(e,t,n){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}n("3410"),e.exports=r},3706:function(e,t,n){},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,c=0;while(s>c)i.f(e,n=r[c++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c96":function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,c=i.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4083:function(e,t,n){n("a15b"),n("fb6a"),n("b0c0"),n("a9e3"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("841c"),n("1276"),n("4c53");var r=n("7037"),i=function(){"use strict";var e,t,n,o,a,s,c,l,u,f,d,p,h,m,v,g,b,y,O,x,E,w,T,S,C,_,j,A,k,L,R,N,I,M={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},D={asi:!0,bitwise:!0,boss:!0,browser:!0,couch:!0,curly:!0,debug:!0,devel:!0,dojo:!0,eqeqeq:!0,eqnull:!0,es5:!0,esnext:!0,evil:!0,expr:!0,forin:!0,funcscope:!0,globalstrict:!0,immed:!0,iterator:!0,jquery:!0,lastsemic:!0,latedef:!0,laxbreak:!0,laxcomma:!0,loopfunc:!0,mootools:!0,multistr:!0,newcap:!0,noarg:!0,node:!0,noempty:!0,nonew:!0,nonstandard:!0,nomen:!0,onevar:!0,onecase:!0,passfail:!0,plusplus:!0,proto:!0,prototypejs:!0,regexdash:!0,regexp:!0,rhino:!0,undef:!0,scripturl:!0,shadow:!0,smarttabs:!0,strict:!0,sub:!0,supernew:!0,trailing:!0,validthis:!0,withstmt:!0,white:!0,wsh:!0},P={maxlen:!1,indent:!1,maxerr:!1,predef:!1},U={bitwise:!0,forin:!0,newcap:!0,nomen:!0,plusplus:!0,regexp:!0,undef:!0,white:!0,eqeqeq:!0,onevar:!0},F={eqeq:"eqeqeq",vars:"onevar",windows:"wsh"},H={ArrayBuffer:!1,ArrayBufferView:!1,Audio:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,DataView:!1,DOMParser:!1,defaultStatus:!1,document:!1,event:!1,FileReader:!1,Float32Array:!1,Float64Array:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Image:!1,length:!1,localStorage:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,moveBy:!1,moveTo:!1,name:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,print:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,top:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,WebSocket:!1,window:!1,Worker:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},B={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},W={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},z={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},V={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"/":"\\/","\\":"\\\\"},G=["closure","exception","global","label","outer","unused","var"],q={$:!1,jQuery:!1},$={$:!1,$$:!1,Assets:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,Iframe:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},K={__filename:!1,__dirname:!1,Buffer:!1,console:!1,exports:!1,GLOBAL:!1,global:!1,module:!1,process:!1,require:!1,setTimeout:!1,clearTimeout:!1,setInterval:!1,clearInterval:!1},Y={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},X={defineClass:!1,deserialize:!1,gc:!1,help:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},Q={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},J={escape:!1,unescape:!1},Z={},ee={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0};function te(){}function ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function re(e,t){void 0===P[e]&&void 0===D[e]&&ce("Bad option: '"+e+"'.",t)}function ie(e,t){var n;for(n in t)ne(t,n)&&(e[n]=t[n])}function oe(){v.couch&&ie(g,B),v.rhino&&ie(g,X),v.prototypejs&&ie(g,Y),v.node&&(ie(g,K),v.globalstrict=!0),v.devel&&ie(g,W),v.dojo&&ie(g,z),v.browser&&ie(g,H),v.nonstandard&&ie(g,J),v.jquery&&ie(g,q),v.mootools&&ie(g,$),v.wsh&&ie(g,ee),v.esnext&&S(),v.globalstrict&&!1!==v.strict&&(v.strict=!0)}function ae(e,t,n){var r=Math.floor(t/u.length*100);throw{name:"JSHintError",line:t,character:n,message:e+" ("+r+"% scanned).",raw:e}}function se(e,t,n,r){return i.undefs.push([e,t,n,r])}function ce(e,t,n,r,o,a){var s,c,l;return t=t||h,"(end)"===t.id&&(t=w),c=t.line||0,s=t.from||0,l={id:"(error)",raw:e,evidence:u[c-1]||"",line:c,character:s,a:n,b:r,c:o,d:a},l.reason=e.supplant(l),i.errors.push(l),v.passfail&&ae("Stopping. ",c,s),C+=1,C>=v.maxerr&&ae("Too many errors.",c,s),l}function le(e,t,n,r,i,o,a){return ce(e,{line:t,from:n},r,i,o,a)}function ue(e,t,n,r,i,o){ce(e,t,n,r,i,o)}function fe(e,t,n,r,i,o,a){return ue(e,{line:t,from:n},r,i,o,a)}(function(){/@cc|<\/?|script|\]\s*\]|<\s*!|&lt/i,_=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,j=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jshint|jslint|members?|global)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/,A=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,k=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,L=/\*\/|\/\*/,R=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,N=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,I=/^\s*\/\*\s*falls\sthrough\s*\*\/\s*$/})(),"function"!==typeof Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)}),"function"!==typeof Object.create&&(Object.create=function(e){return te.prototype=e,new te}),"function"!==typeof Object.keys&&(Object.keys=function(e){var t,n=[];for(t in e)ne(e,t)&&n.push(t);return n}),"function"!==typeof String.prototype.entityify&&(String.prototype.entityify=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}),"function"!==typeof String.prototype.isAlpha&&(String.prototype.isAlpha=function(){return this>="a"&&this<="z￿"||this>="A"&&this<="Z￿"}),"function"!==typeof String.prototype.isDigit&&(String.prototype.isDigit=function(){return this>="0"&&this<="9"}),"function"!==typeof String.prototype.supplant&&(String.prototype.supplant=function(e){return this.replace(/\{([^{}]*)\}/g,(function(t,n){var r=e[n];return"string"===typeof r||"number"===typeof r?r:t}))}),"function"!==typeof String.prototype.name&&(String.prototype.name=function(){return R.test(this)?this:A.test(this)?'"'+this.replace(k,(function(e){var t=V[e];return t||"\\u"+("0000"+e.charCodeAt().toString(16)).slice(-4)}))+'"':'"'+this+'"'});var de=function(){var e,t,n,r;function i(){var t,i;return!(n>=u.length)&&(e=1,r=u[n],n+=1,t=v.smarttabs?r.search(/ \t/):r.search(/ \t|\t /),t>=0&&le("Mixed spaces and tabs.",n,t+1),r=r.replace(/\t/g,E),t=r.search(_),t>=0&&le("Unsafe character.",n,t),v.maxlen&&v.maxlen<r.length&&le("Line too long.",n,r.length),i=v.trailing&&r.match(/^(.*?)\s+$/),i&&!/^\s+$/.test(r)&&le("Trailing whitespace.",n,i[1].length+1),!0)}function o(r,i){var o,a;return a="(color)"===r||"(range)"===r?{type:r}:"(punctuator)"===r||"(identifier)"===r&&ne(Z,i)?Z[i]||Z["(error)"]:Z[r],a=Object.create(a),"(string)"!==r&&"(range)"!==r||!v.scripturl&&N.test(i)&&le("Script URL.",n,t),"(identifier)"===r&&(a.identifier=!0,"__proto__"!==i||v.proto?"__iterator__"!==i||v.iterator?!v.nomen||"_"!==i.charAt(0)&&"_"!==i.charAt(i.length-1)||(!v.node||"."===w.id||"__dirname"!==i&&"__filename"!==i)&&le("Unexpected {a} in '{b}'.",n,t,"dangling '_'",i):le("'{a}' is only available in JavaScript 1.7.",n,t,i):le("The '{a}' property is deprecated.",n,t,i)),a.value=i,a.line=n,a.character=e,a.from=t,o=a.id,"(endline)"!==o&&(b=o&&("(,=:[!&|?{};".indexOf(o.charAt(o.length-1))>=0||"return"===o||"case"===o)),a}return{init:function(e){u="string"===typeof e?e.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n"):e,u[0]&&"#!"===u[0].substr(0,2)&&(u[0]=""),n=0,i(),t=1},range:function(i,a){var s,c="";for(t=e,r.charAt(0)!==i&&fe("Expected '{a}' and instead saw '{b}'.",n,e,i,r.charAt(0));;){switch(r=r.slice(1),e+=1,s=r.charAt(0),s){case"":fe("Missing '{a}'.",n,e,s);break;case a:return r=r.slice(1),e+=1,o("(range)",c);case"\\":le("Unexpected '{a}'.",n,e,s)}c+=s}},token:function(){var a,s,c,u,f,d,p,h,m,g,y,O,E;function T(n){var i,o=n.exec(r);if(o)return p=o[0].length,i=o[1],s=i.charAt(0),r=r.substr(p),t=e+p-i.length,e+=p,i}function S(a){var s,c,u="",f=!1;function d(t){var i=parseInt(r.substr(c+1,t),16);c+=t,i>=32&&i<=126&&34!==i&&92!==i&&39!==i&&le("Unnecessary escapement.",n,e),e+=t,s=String.fromCharCode(i)}l&&'"'!==a&&le("Strings must use doublequote.",n,e),c=0;e:for(;;){while(c>=r.length){c=0;var p=n,h=t;if(!i()){fe("Unclosed string.",p,h);break e}f?f=!1:le("Unclosed string.",p,h)}if(s=r.charAt(c),s===a)return e+=1,r=r.substr(c+1),o("(string)",u,a);if(s<" "){if("\n"===s||"\r"===s)break;le("Control character in string: {a}.",n,e+c,r.slice(0,c))}else if("\\"===s)switch(c+=1,e+=1,s=r.charAt(c),E=r.charAt(c+1),s){case"\\":case'"':case"/":break;case"'":l&&le("Avoid \\'.",n,e);break;case"b":s="\b";break;case"f":s="\f";break;case"n":s="\n";break;case"r":s="\r";break;case"t":s="\t";break;case"0":s="\0",E>=0&&E<=7&&x["use strict"]&&le("Octal literals are not allowed in strict mode.",n,e);break;case"u":d(4);break;case"v":l&&le("Avoid \\v.",n,e),s="\v";break;case"x":l&&le("Avoid \\x-.",n,e),d(2);break;case"":if(f=!0,v.multistr){l&&le("Avoid EOL escapement.",n,e),s="",e-=1;break}le("Bad escapement of EOL. Use option multistr if needed.",n,e);break;default:le("Bad escapement.",n,e)}u+=s,e+=1,c+=1}}for(;;){if(!r)return o(i()?"(endline)":"(end)","");if(g=T(j),g){if(s.isAlpha()||"_"===s||"$"===s)return o("(identifier)",g);if(s.isDigit())return isFinite(Number(g))||le("Bad number '{a}'.",n,e,g),r.substr(0,1).isAlpha()&&le("Missing space after '{a}'.",n,e,g),"0"===s&&(c=g.substr(1,1),c.isDigit()?"."!==w.id&&le("Don't use extra leading zeros '{a}'.",n,e,g):!l||"x"!==c&&"X"!==c||le("Avoid 0x-. '{a}'.",n,e,g)),"."===g.substr(g.length-1)&&le("A trailing decimal point can be confused with a dot '{a}'.",n,e,g),o("(number)",g);switch(g){case'"':case"'":return S(g);case"//":r="",w.comment=!0;break;case"/*":for(;;){if(d=r.search(L),d>=0)break;i()||fe("Unclosed comment.",n,e)}e+=d+2,"/"===r.substr(d,1)&&fe("Nested comment.",n,e),r=r.substr(d+2),w.comment=!0;break;case"/*members":case"/*member":case"/*jshint":case"/*jslint":case"/*global":case"*/":return{value:g,type:"special",line:n,character:e,from:t};case"":break;case"/":if("/="===w.id&&fe("A regular expression literal can be confused with '/='.",n,t),b){for(u=0,0,p=0;;){switch(a=!0,s=r.charAt(p),p+=1,s){case"":return fe("Unclosed regular expression.",n,t),ae("Stopping.",n,t);case"/":u>0&&le("{a} unterminated regular expression group(s).",n,t+p,u),s=r.substr(0,p-1),m={g:!0,i:!0,m:!0};while(!0===m[r.charAt(p)])m[r.charAt(p)]=!1,p+=1;return e+=p,r=r.substr(p),m=r.charAt(0),"/"!==m&&"*"!==m||fe("Confusing regular expression.",n,t),o("(regexp)",s);case"\\":s=r.charAt(p),s<" "?le("Unexpected control character in regular expression.",n,t+p):"<"===s&&le("Unexpected escaped character '{a}' in regular expression.",n,t+p,s),p+=1;break;case"(":if(u+=1,a=!1,"?"===r.charAt(p))switch(p+=1,r.charAt(p)){case":":case"=":case"!":p+=1;break;default:le("Expected '{a}' and instead saw '{b}'.",n,t+p,":",r.charAt(p))}else 1;break;case"|":a=!1;break;case")":0===u?le("Unescaped '{a}'.",n,t+p,")"):u-=1;break;case" ":m=1;while(" "===r.charAt(p))p+=1,m+=1;m>1&&le("Spaces are hard to count. Use {{a}}.",n,t+p,m);break;case"[":s=r.charAt(p),"^"===s&&(p+=1,v.regexp?le("Insecure '{a}'.",n,t+p,s):"]"===r.charAt(p)&&fe("Unescaped '{a}'.",n,t+p,"^")),"]"===s&&le("Empty class.",n,t+p-1),y=!1,O=!1;e:do{switch(s=r.charAt(p),p+=1,s){case"[":case"^":le("Unescaped '{a}'.",n,t+p,s),O?O=!1:y=!0;break;case"-":y&&!O?(y=!1,O=!0):O?O=!1:"]"===r.charAt(p)?O=!0:(v.regexdash!==(2===p||3===p&&"^"===r.charAt(1))&&le("Unescaped '{a}'.",n,t+p-1,"-"),y=!0);break;case"]":O&&!v.regexdash&&le("Unescaped '{a}'.",n,t+p-1,"-");break e;case"\\":s=r.charAt(p),s<" "?le("Unexpected control character in regular expression.",n,t+p):"<"===s&&le("Unexpected escaped character '{a}' in regular expression.",n,t+p,s),p+=1,/[wsd]/i.test(s)?(O&&(le("Unescaped '{a}'.",n,t+p,"-"),O=!1),y=!1):O?O=!1:y=!0;break;case"/":le("Unescaped '{a}'.",n,t+p-1,"/"),O?O=!1:y=!0;break;case"<":O?O=!1:y=!0;break;default:O?O=!1:y=!0}}while(s);break;case".":v.regexp&&le("Insecure '{a}'.",n,t+p,s);break;case"]":case"?":case"{":case"}":case"+":case"*":le("Unescaped '{a}'.",n,t+p,s)}if(a)switch(r.charAt(p)){case"?":case"+":case"*":p+=1,"?"===r.charAt(p)&&(p+=1);break;case"{":for(p+=1,s=r.charAt(p),(s<"0"||s>"9")&&le("Expected a number and instead saw '{a}'.",n,t+p,s),p+=1,h=+s;;){if(s=r.charAt(p),s<"0"||s>"9")break;p+=1,h=+s+10*h}if(f=h,","===s&&(p+=1,f=1/0,s=r.charAt(p),s>="0"&&s<="9"))for(p+=1,f=+s;;){if(s=r.charAt(p),s<"0"||s>"9")break;p+=1,f=+s+10*f}"}"!==r.charAt(p)?le("Expected '{a}' and instead saw '{b}'.",n,t+p,"}",s):p+=1,"?"===r.charAt(p)&&(p+=1),h>f&&le("'{a}' should not be greater than '{b}'.",n,t+p,h,f)}}return s=r.substr(0,p-1),e+=p,r=r.substr(p),o("(regexp)",s)}return o("(punctuator)",g);case"#":return o("(punctuator)",g);default:return o("(punctuator)",g)}}else{g="",s="";while(r&&r<"!")r=r.substr(1);r&&(fe("Unexpected '{a}'.",n,e,r.substr(0,1)),r="")}}}}}();function pe(e,n){"hasOwnProperty"===e&&ce("'hasOwnProperty' is a really bad name."),ne(t,e)&&!t["(global)"]&&(!0===t[e]?v.latedef&&ce("'{a}' was used before it was defined.",h,e):v.shadow||"exception"===n||ce("'{a}' is already defined.",h,e)),t[e]=n,t["(global)"]?(o[e]=t,ne(a,e)&&(v.latedef&&ce("'{a}' was used before it was defined.",h,e),delete a[e])):O[e]=t}function he(){var e,n,r,i,o,a,s=h.value;switch(s){case"*/":ue("Unbegun comment.");break;case"/*members":case"/*member":s="/*members",p||(p={}),n=p;break;case"/*jshint":case"/*jslint":n=v,r=D;break;case"/*global":n=g;break;default:ue("What?")}i=de.token();e:for(;;){for(;;){if("special"===i.type&&"*/"===i.value)break e;if("(endline)"!==i.id&&","!==i.id)break;i=de.token()}"(string)"!==i.type&&"(identifier)"!==i.type&&"/*members"!==s&&ue("Bad option.",i),a=de.token(),":"===a.id?(a=de.token(),n===p&&ue("Expected '{a}' and instead saw '{b}'.",i,"*/",":"),"/*jshint"===s&&re(i.value,i),"indent"!==i.value||"/*jshint"!==s&&"/*jslint"!==s?"maxerr"!==i.value||"/*jshint"!==s&&"/*jslint"!==s?"maxlen"!==i.value||"/*jshint"!==s&&"/*jslint"!==s?"validthis"===i.value?t["(global)"]?ue("Option 'validthis' can't be used in a global scope."):"true"===a.value||"false"===a.value?n[i.value]="true"===a.value:ue("Bad option value.",a):"true"===a.value||"false"===a.value?"/*jslint"===s?(o=F[i.value]||i.value,n[o]="true"===a.value,void 0!==U[o]&&(n[o]=!n[o])):n[i.value]="true"===a.value:ue("Bad option value.",a):(e=+a.value,("number"!==typeof e||!isFinite(e)||e<=0||Math.floor(e)!==e)&&ue("Expected a small integer and instead saw '{a}'.",a,a.value),n.maxlen=e):(e=+a.value,("number"!==typeof e||!isFinite(e)||e<=0||Math.floor(e)!==e)&&ue("Expected a small integer and instead saw '{a}'.",a,a.value),n.maxerr=e):(e=+a.value,("number"!==typeof e||!isFinite(e)||e<=0||Math.floor(e)!==e)&&ue("Expected a small integer and instead saw '{a}'.",a,a.value),n.white=!0,n.indent=e),i=de.token()):("/*jshint"!==s&&"/*jslint"!==s||ue("Missing option value.",i),n[i.value]=!1,i=a)}r&&oe()}function me(e){var t,n=e||0,r=0;while(r<=n)t=f[r],t||(t=f[r]=de.token()),r+=1;return t}function ve(t,n){switch(w.id){case"(number)":"."===h.id&&ce("A dot following a number can be confused with a decimal point.",w);break;case"-":"-"!==h.id&&"--"!==h.id||ce("Confusing minusses.");break;case"+":"+"!==h.id&&"++"!==h.id||ce("Confusing plusses.");break}for(("(string)"===w.type||w.identifier)&&(e=w.value),t&&h.id!==t&&(n?"(end)"===h.id?ce("Unmatched '{a}'.",n,n.id):ce("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",h,t,n.id,n.line,h.value):"(identifier)"===h.type&&h.value===t||ce("Expected '{a}' and instead saw '{b}'.",h,t,h.value)),y=w,w=h;;){if(h=f.shift()||de.token(),"(end)"===h.id||"(error)"===h.id)return;if("special"===h.type)he();else if("(endline)"!==h.id)break}}function ge(n,r){var i,o=!1,a=!1;if("(end)"===h.id&&ue("Unexpected early end of program.",w),ve(),r&&(e="anonymous",t["(verb)"]=w.value),!0===r&&w.fud)i=w.fud();else{if(w.nud)i=w.nud();else{if("(number)"===h.type&&"."===w.id)return ce("A leading decimal point can be confused with a dot: '.{a}'.",w,h.value),ve(),w;ue("Expected an identifier and instead saw '{a}'.",w,w.id)}while(n<h.lbp)o="Array"===w.value,a="Object"===w.value,i&&(i.value||i.first&&i.first.value)&&("new"!==i.value||i.first&&i.first.value&&"."===i.first.value)&&(o=!1,i.value!==w.value&&(a=!1)),ve(),o&&"("===w.id&&")"===h.id&&ce("Use the array literal notation [].",w),a&&"("===w.id&&")"===h.id&&ce("Use the object literal notation {}.",w),w.led?i=w.led(i):ue("Expected an operator and instead saw '{a}'.",w,w.id)}return i}function be(e,t){e=e||w,t=t||h,v.white&&e.character!==t.from&&e.line===t.line&&(e.from+=e.character-e.from,ce("Unexpected space after '{a}'.",e,e.value))}function ye(e,t){e=e||w,t=t||h,!v.white||e.character===t.from&&e.line===t.line||ce("Unexpected space before '{a}'.",t,t.value)}function Oe(e,t){e=e||w,t=t||h,v.white&&!e.comment&&e.line===t.line&&be(e,t)}function xe(e,t){v.white&&(e=e||w,t=t||h,e.line===t.line&&e.character===t.from&&(e.from+=e.character-e.from,ce("Missing space after '{a}'.",e,e.value)))}function Ee(e,t){e=e||w,t=t||h,v.laxbreak||e.line===t.line?v.white&&(e=e||w,t=t||h,e.character===t.from&&(e.from+=e.character-e.from,ce("Missing space after '{a}'.",e,e.value))):ce("Bad line breaking before '{a}'.",t,t.id)}function we(e){var t;v.white&&"(end)"!==h.id&&(t=c+(e||0),h.from!==t&&ce("Expected '{a}' to have an indentation at {b} instead at {c}.",h,h.value,t,h.from))}function Te(e){e=e||w,e.line!==h.line&&ce("Line breaking error '{a}'.",e,e.value)}function Se(){w.line!==h.line?v.laxcomma||(Se.first&&(ce("Comma warnings can be turned off with 'laxcomma'"),Se.first=!1),ce("Bad line breaking before '{a}'.",w,h.id)):!w.comment&&w.character!==h.from&&v.white&&(w.from+=w.character-w.from,ce("Unexpected space after '{a}'.",w,w.value)),ve(","),xe(w,h)}function Ce(e,t){var n=Z[e];return n&&"object"===r(n)||(Z[e]=n={id:e,lbp:t,value:e}),n}function _e(e){return Ce(e,0)}function je(e,t){var n=_e(e);return n.identifier=n.reserved=!0,n.fud=t,n}function Ae(e,t){var n=je(e,t);return n.block=!0,n}function ke(e){var t=e.id.charAt(0);return(t>="a"&&t<="z"||t>="A"&&t<="Z")&&(e.identifier=e.reserved=!0),e}function Le(e,t){var n=Ce(e,150);return ke(n),n.nud="function"===typeof t?t:function(){return this.right=ge(150),this.arity="unary","++"!==this.id&&"--"!==this.id||(v.plusplus?ce("Unexpected use of '{a}'.",this,this.id):this.right.identifier&&!this.right.reserved||"."===this.right.id||"["===this.right.id||ce("Bad operand.",this)),this},n}function Re(e,t){var n=_e(e);return n.type=e,n.nud=t,n}function Ne(e,t){var n=Re(e,t);return n.identifier=n.reserved=!0,n}function Ie(e,t){return Ne(e,(function(){return"function"===typeof t&&t(this),this}))}function Me(e,t,n,r){var i=Ce(e,n);return ke(i),i.led=function(i){return r||(Ee(y,w),xe(w,h)),"in"===e&&"!"===i.id&&ce("Confusing use of '{a}'.",i,"!"),"function"===typeof t?t(i,this):(this.left=i,this.right=ge(n),this)},i}function De(e,t){var n=Ce(e,100);return n.led=function(e){Ee(y,w),xe(w,h);var n=ge(100);return e&&"NaN"===e.id||n&&"NaN"===n.id?ce("Use the isNaN function to compare with NaN.",this):t&&t.apply(this,[e,n]),"!"===e.id&&ce("Confusing use of '{a}'.",e,"!"),"!"===n.id&&ce("Confusing use of '{a}'.",n,"!"),this.left=e,this.right=n,this},n}function Pe(e){return e&&("(number)"===e.type&&0===+e.value||"(string)"===e.type&&""===e.value||"null"===e.type&&!v.eqnull||"true"===e.type||"false"===e.type||"undefined"===e.type)}function Ue(e,n){return Ce(e,20).exps=!0,Me(e,(function(e,n){if(n.left=e,!1===g[e.value]&&!0===O[e.value]["(global)"]?ce("Read only.",e):e["function"]&&ce("'{a}' is a function.",e,e.value),e){if(v.esnext&&"const"===t[e.value]&&ce("Attempting to override '{a}' which is a constant",e,e.value),"."===e.id||"["===e.id)return e.left&&"arguments"!==e.left.value||ce("Bad assignment.",n),n.right=ge(19),n;if(e.identifier&&!e.reserved)return"exception"===t[e.value]&&ce("Do not assign to the exception parameter.",e),n.right=ge(19),n;e===Z["function"]&&ce("Expected an identifier in an assignment and instead saw a function invocation.",w)}ue("Bad assignment.",n)}),20)}function Fe(e,t,n){var r=Ce(e,n);return ke(r),r.led="function"===typeof t?t:function(e){return v.bitwise&&ce("Unexpected use of '{a}'.",this,this.id),this.left=e,this.right=ge(n),this},r}function He(e){return Ce(e,20).exps=!0,Me(e,(function(e,t){if(v.bitwise&&ce("Unexpected use of '{a}'.",t,t.id),xe(y,w),xe(w,h),e)return"."===e.id||"["===e.id||e.identifier&&!e.reserved?(ge(19),t):(e===Z["function"]&&ce("Expected an identifier in an assignment, and instead saw a function invocation.",w),t);ue("Bad assignment.",t)}),20)}function Be(e,t){var n=Ce(e,150);return n.led=function(e){return v.plusplus?ce("Unexpected use of '{a}'.",this,this.id):e.identifier&&!e.reserved||"."===e.id||"["===e.id||ce("Bad operand.",this),this.left=e,this},n}function We(e){if(h.identifier)return ve(),w.reserved&&!v.es5&&(e&&"undefined"===w.value||ce("Expected an identifier and instead saw '{a}' (a reserved word).",w,w.id)),w.value}function ze(e){var t=We(e);if(t)return t;"function"===w.id&&"("===h.id?ce("Missing name in function declaration."):ue("Expected an identifier and instead saw '{a}'.",h,h.value)}function Ve(e){var t,n=0;if(";"===h.id&&!m)for(;;){if(t=me(n),t.reach)return;if("(endline)"!==t.id){if("function"===t.id){if(!v.latedef)break;ce("Inner functions should be listed at the top of the outer function.",t);break}ce("Unreachable '{a}' after '{b}'.",t,t.value,e);break}n+=1}}function Ge(e){var t,n=c,r=O,i=h;if(";"!==i.id){if(i.identifier&&!i.reserved&&":"===me().id&&(ve(),ve(":"),O=Object.create(r),pe(i.value,"label"),h.labelled||ce("Label '{a}' on {b} statement.",h,i.value,h.value),N.test(i.value+":")&&ce("Label '{a}' looks like a javascript url.",i,i.value),h.label=i.value,i=h),e||we(),t=ge(0,!0),!i.block){if(v.expr||t&&t.exps?v.nonew&&"("===t.id&&"new"===t.left.id&&ce("Do not use 'new' for side effects."):ce("Expected an assignment or function call and instead saw an expression.",w),","===h.id)return Se();";"!==h.id?v.asi||v.lastsemic&&"}"===h.id&&h.line===w.line||le("Missing semicolon.",w.line,w.character):(be(w,h),ve(";"),xe(w,h))}return c=n,O=r,t}ve(";")}function qe(e){var t,n=[];while(!h.reach&&"(end)"!==h.id)";"===h.id?(t=me(),t&&"("===t.id||ce("Unnecessary semicolon."),ve(";")):n.push(Ge(e===h.line));return n}function $e(){for(var e,t,n;;){if("(string)"!==h.id)break;if(t=me(0),"(endline)"===t.id){e=1;do{n=me(e),e+=1}while("(endline)"===n.id);if(";"!==n.id){if("(string)"!==n.id&&"(number)"!==n.id&&"(regexp)"!==n.id&&!0!==n.identifier&&"}"!==n.id)break;ce("Missing semicolon.",h)}else t=n}else if("}"===t.id)ce("Missing semicolon.",t);else if(";"!==t.id)break;we(),ve(),x[w.value]&&ce('Unnecessary directive "{a}".',w,w.value),"use strict"===w.value&&(v.newcap=!0,v.undef=!0),x[w.value]=!0,";"===t.id&&ve(";")}}function Ke(e,n,r){var i,o,a,l,u,f=s,d=c,p=O;if(s=e,e&&v.funcscope||(O=Object.create(O)),xe(w,h),a=h,"{"===h.id){if(ve("{"),l=w.line,"}"!==h.id){c+=v.indent;while(!e&&h.from>c)c+=v.indent;if(r){for(u in o={},x)ne(x,u)&&(o[u]=x[u]);$e(),v.strict&&t["(context)"]["(global)"]&&(o["use strict"]||x["use strict"]||ce('Missing "use strict" statement.'))}i=qe(l),r&&(x=o),c-=v.indent,l!==h.line&&we()}else l!==h.line&&we();ve("}",a),c=d}else e?(n&&!v.curly||ce("Expected '{a}' and instead saw '{b}'.",h,"{",h.value),m=!0,c+=v.indent,i=[Ge(h.line===w.line)],c-=v.indent,m=!1):ue("Expected '{a}' and instead saw '{b}'.",h,"{",h.value);return t["(verb)"]=null,e&&v.funcscope||(O=p),s=f,!e||!v.noempty||i&&0!==i.length||ce("Empty block."),i}function Ye(e){p&&"boolean"!==typeof p[e]&&ce("Unexpected /*member '{a}'.",w,e),"number"===typeof d[e]?d[e]+=1:d[e]=1}function Xe(e){var t=e.value,n=e.line,r=a[t];"function"===typeof r&&(r=!1),r?r[r.length-1]!==n&&r.push(n):(r=[n],a[t]=r)}function Qe(){var e=We(!0);return e||("(string)"===h.id?(e=h.value,ve()):"(number)"===h.id&&(e=h.value.toString(),ve())),e}function Je(){var e,t=h,n=[];if(ve("("),Oe(),")"!==h.id)for(;;){if(e=ze(!0),n.push(e),pe(e,"parameter"),","!==h.id)return ve(")",t),Oe(y,w),n;Se()}else ve(")")}function Ze(r,i){var o,a=v,s=O;return v=Object.create(v),O=Object.create(O),t={"(name)":r||'"'+e+'"',"(line)":h.line,"(context)":t,"(breakage)":0,"(loopage)":0,"(scope)":O,"(statement)":i},o=t,w.funct=t,n.push(t),r&&pe(r,"function"),t["(params)"]=Je(),Ke(!1,!1,!0),O=s,v=a,t["(last)"]=w.line,t=t["(context)"],o}Re("(number)",(function(){return this})),Re("(string)",(function(){return this})),Z["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var i,o=this.value,a=O[o];if("function"===typeof a?a=void 0:"boolean"===typeof a&&(i=t,t=n[0],pe(o,"var"),a=t,t=i),t===a)switch(t[o]){case"unused":t[o]="var";break;case"unction":t[o]="function",this["function"]=!0;break;case"function":this["function"]=!0;break;case"label":ce("'{a}' is a statement label.",w,o);break}else if(t["(global)"])v.undef&&"boolean"!==typeof g[o]&&("typeof"!==e&&"delete"!==e||h&&("."===h.value||"["===h.value))&&se(t,"'{a}' is not defined.",w,o),Xe(w);else switch(t[o]){case"closure":case"function":case"var":case"unused":ce("'{a}' used out of scope.",w,o);break;case"label":ce("'{a}' is a statement label.",w,o);break;case"outer":case"global":break;default:if(!0===a)t[o]=!0;else if(null===a)ce("'{a}' is not allowed.",w,o),Xe(w);else if("object"!==r(a))v.undef&&("typeof"!==e&&"delete"!==e||h&&("."===h.value||"["===h.value))&&se(t,"'{a}' is not defined.",w,o),t[o]=!0,Xe(w);else switch(a[o]){case"function":case"unction":this["function"]=!0,a[o]="closure",t[o]=a["(global)"]?"global":"outer";break;case"var":case"unused":a[o]="closure",t[o]=a["(global)"]?"global":"outer";break;case"closure":case"parameter":t[o]=a["(global)"]?"global":"outer";break;case"label":ce("'{a}' is a statement label.",w,o)}}return this},led:function(){ue("Expected an operator and instead saw '{a}'.",h,h.value)}},Re("(regexp)",(function(){return this})),_e("(endline)"),_e("(begin)"),_e("(end)").reach=!0,_e("</").reach=!0,_e("<!"),_e("\x3c!--"),_e("--\x3e"),_e("(error)").reach=!0,_e("}").reach=!0,_e(")"),_e("]"),_e('"').reach=!0,_e("'").reach=!0,_e(";"),_e(":").reach=!0,_e(","),_e("#"),_e("@"),Ne("else"),Ne("case").reach=!0,Ne("catch"),Ne("default").reach=!0,Ne("finally"),Ie("arguments",(function(e){x["use strict"]&&t["(global)"]&&ce("Strict violation.",e)})),Ie("eval"),Ie("false"),Ie("Infinity"),Ie("NaN"),Ie("null"),Ie("this",(function(e){x["use strict"]&&!v.validthis&&(t["(statement)"]&&t["(name)"].charAt(0)>"Z"||t["(global)"])&&ce("Possible strict violation.",e)})),Ie("true"),Ie("undefined"),Ue("=","assign",20),Ue("+=","assignadd",20),Ue("-=","assignsub",20),Ue("*=","assignmult",20),Ue("/=","assigndiv",20).nud=function(){ue("A regular expression literal can be confused with '/='.")},Ue("%=","assignmod",20),He("&=","assignbitand",20),He("|=","assignbitor",20),He("^=","assignbitxor",20),He("<<=","assignshiftleft",20),He(">>=","assignshiftright",20),He(">>>=","assignshiftrightunsigned",20),Me("?",(function(e,t){return t.left=e,t.right=ge(10),ve(":"),t["else"]=ge(10),t}),30),Me("||","or",40),Me("&&","and",50),Fe("|","bitor",70),Fe("^","bitxor",80),Fe("&","bitand",90),De("==",(function(e,t){var n=v.eqnull&&("null"===e.value||"null"===t.value);return!n&&v.eqeqeq?ce("Expected '{a}' and instead saw '{b}'.",this,"===","=="):Pe(e)?ce("Use '{a}' to compare with '{b}'.",this,"===",e.value):Pe(t)&&ce("Use '{a}' to compare with '{b}'.",this,"===",t.value),this})),De("==="),De("!=",(function(e,t){var n=v.eqnull&&("null"===e.value||"null"===t.value);return!n&&v.eqeqeq?ce("Expected '{a}' and instead saw '{b}'.",this,"!==","!="):Pe(e)?ce("Use '{a}' to compare with '{b}'.",this,"!==",e.value):Pe(t)&&ce("Use '{a}' to compare with '{b}'.",this,"!==",t.value),this})),De("!=="),De("<"),De(">"),De("<="),De(">="),Fe("<<","shiftleft",120),Fe(">>","shiftright",120),Fe(">>>","shiftrightunsigned",120),Me("in","in",120),Me("instanceof","instanceof",120),Me("+",(function(e,t){var n=ge(130);return e&&n&&"(string)"===e.id&&"(string)"===n.id?(e.value+=n.value,e.character=n.character,!v.scripturl&&N.test(e.value)&&ce("JavaScript URL.",e),e):(t.left=e,t.right=n,t)}),130),Le("+","num"),Le("+++",(function(){return ce("Confusing pluses."),this.right=ge(150),this.arity="unary",this})),Me("+++",(function(e){return ce("Confusing pluses."),this.left=e,this.right=ge(130),this}),130),Me("-","sub",130),Le("-","neg"),Le("---",(function(){return ce("Confusing minuses."),this.right=ge(150),this.arity="unary",this})),Me("---",(function(e){return ce("Confusing minuses."),this.left=e,this.right=ge(130),this}),130),Me("*","mult",140),Me("/","div",140),Me("%","mod",140),Be("++","postinc"),Le("++","preinc"),Z["++"].exps=!0,Be("--","postdec"),Le("--","predec"),Z["--"].exps=!0,Le("delete",(function(){var e=ge(0);return(!e||"."!==e.id&&"["!==e.id)&&ce("Variables should not be deleted."),this.first=e,this})).exps=!0,Le("~",(function(){return v.bitwise&&ce("Unexpected '{a}'.",this,"~"),ge(150),this})),Le("!",(function(){return this.right=ge(150),this.arity="unary",!0===M[this.right.id]&&ce("Confusing use of '{a}'.",this,"!"),this})),Le("typeof","typeof"),Le("new",(function(){var e,t=ge(155);if(t&&"function"!==t.id)if(t.identifier)switch(t["new"]=!0,t.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":ce("Do not use {a} as a constructor.",w,t.value);break;case"Function":v.evil||ce("The Function constructor is eval.");break;case"Date":case"RegExp":break;default:"function"!==t.id&&(e=t.value.substr(0,1),v.newcap&&(e<"A"||e>"Z")&&ce("A constructor name should start with an uppercase letter.",w))}else"."!==t.id&&"["!==t.id&&"("!==t.id&&ce("Bad constructor.",w);else v.supernew||ce("Weird construction. Delete 'new'.",this);return be(w,h),"("===h.id||v.supernew||ce("Missing '()' invoking a constructor."),this.first=t,this})),Z["new"].exps=!0,Le("void").exps=!0,Me(".",(function(e,t){be(y,w),ye();var n=ze();return"string"===typeof n&&Ye(n),t.left=e,t.right=n,!e||"arguments"!==e.value||"callee"!==n&&"caller"!==n?v.evil||!e||"document"!==e.value||"write"!==n&&"writeln"!==n||ce("document.write can be a form of eval.",e):v.noarg?ce("Avoid arguments.{a}.",e,n):x["use strict"]&&ue("Strict violation."),v.evil||"eval"!==n&&"execScript"!==n||ce("eval is evil."),t}),160,!0),Me("(",(function(e,t){"}"!==y.id&&")"!==y.id&&ye(y,w),Oe(),v.immed&&!e.immed&&"function"===e.id&&ce("Wrap an immediate function invocation in parentheses to assist the reader in understanding that the expression is the result of a function, and not the function itself.");var n=0,i=[];if(e&&"(identifier)"===e.type&&e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&"Number"!==e.value&&"String"!==e.value&&"Boolean"!==e.value&&"Date"!==e.value&&("Math"===e.value?ce("Math is not a function.",e):v.newcap&&ce("Missing 'new' prefix when invoking a constructor.",e)),")"!==h.id)for(;;){if(i[i.length]=ge(10),n+=1,","!==h.id)break;Se()}return ve(")"),Oe(y,w),"object"===r(e)&&("parseInt"===e.value&&1===n&&ce("Missing radix parameter.",e),v.evil||("eval"===e.value||"Function"===e.value||"execScript"===e.value?ce("eval is evil.",e):!i[0]||"(string)"!==i[0].id||"setTimeout"!==e.value&&"setInterval"!==e.value||ce("Implied eval is evil. Pass a function instead of a string.",e)),e.identifier||"."===e.id||"["===e.id||"("===e.id||"&&"===e.id||"||"===e.id||"?"===e.id||ce("Bad invocation.",e)),t.left=e,t}),155,!0).exps=!0,Le("(",(function(){Oe(),"function"===h.id&&(h.immed=!0);var e=ge(0);return ve(")",this),Oe(y,w),v.immed&&"function"===e.id&&("("===h.id||"."===h.id&&("call"===me().value||"apply"===me().value)?ce("Move the invocation into the parens that contain the function.",h):ce("Do not wrap function literals in parens unless they are to be immediately invoked.",this)),e})),Me("[",(function(e,t){ye(y,w),Oe();var n,r=ge(0);return r&&"(string)"===r.type&&(v.evil||"eval"!==r.value&&"execScript"!==r.value||ce("eval is evil.",t),Ye(r.value),!v.sub&&R.test(r.value)&&(n=Z[r.value],n&&n.reserved||ce("['{a}'] is better written in dot notation.",r,r.value))),ve("]",t),Oe(y,w),t.left=e,t.right=r,t}),160,!0),Le("[",(function(){var e=w.line!==h.line;this.first=[],e&&(c+=v.indent,h.from===c+v.indent&&(c+=v.indent));while("(end)"!==h.id){while(","===h.id)ce("Extra comma."),ve(",");if("]"===h.id)break;if(e&&w.line!==h.line&&we(),this.first.push(ge(10)),","!==h.id)break;if(Se(),"]"===h.id&&!v.es5){ce("Extra comma.",w);break}}return e&&(c-=v.indent,we()),ve("]",this),this}),160),function(e){e.nud=function(){var e,t,n,r,i,o={};function a(e,t){o[e]&&ne(o,e)?ce("Duplicate member '{a}'.",h,n):o[e]={},o[e].basic=!0,o[e].basicToken=t}function s(e,t){o[e]&&ne(o,e)?(o[e].basic||o[e].setter)&&ce("Duplicate member '{a}'.",h,n):o[e]={},o[e].setter=!0,o[e].setterToken=t}function l(e){o[e]&&ne(o,e)?(o[e].basic||o[e].getter)&&ce("Duplicate member '{a}'.",h,n):o[e]={},o[e].getter=!0,o[e].getterToken=w}for(e=w.line!==h.line,e&&(c+=v.indent,h.from===c+v.indent&&(c+=v.indent));;){if("}"===h.id)break;if(e&&we(),"get"===h.value&&":"!==me().id)ve("get"),v.es5||ue("get/set are ES5 features."),n=Qe(),n||ue("Missing property name."),l(n),i=h,be(w,h),t=Ze(),r=t["(params)"],r&&ce("Unexpected parameter '{a}' in get {b} function.",i,r[0],n),be(w,h);else if("set"===h.value&&":"!==me().id)ve("set"),v.es5||ue("get/set are ES5 features."),n=Qe(),n||ue("Missing property name."),s(n,h),i=h,be(w,h),t=Ze(),r=t["(params)"],r&&1===r.length||ce("Expected a single parameter in set {a} function.",i,n);else{if(n=Qe(),a(n,h),"string"!==typeof n)break;ve(":"),xe(w,h),ge(10)}if(Ye(n),","!==h.id)break;Se(),","===h.id?ce("Extra comma.",w):"}"!==h.id||v.es5||ce("Extra comma.",w)}if(e&&(c-=v.indent,we()),ve("}",this),v.es5)for(var u in o)ne(o,u)&&o[u].setter&&!o[u].getter&&ce("Setter is defined without getter.",o[u].setterToken);return this},e.fud=function(){ue("Expected to see a statement and instead saw a block.",w)}}(_e("{")),S=function(){var e=je("const",(function(e){var n,r,i;for(this.first=[];;){if(xe(w,h),n=ze(),"const"===t[n]&&ce("const '"+n+"' has already been declared"),t["(global)"]&&!1===g[n]&&ce("Redefinition of '{a}'.",w,n),pe(n,"const"),e)break;if(r=w,this.first.push(w),"="!==h.id&&ce("const '{a}' is initialized to 'undefined'.",w,n),"="===h.id&&(xe(w,h),ve("="),xe(w,h),"undefined"===h.id&&ce("It is not necessary to initialize '{a}' to 'undefined'.",w,n),"="===me(0).id&&h.identifier&&ue("Constant {a} was not declared correctly.",h,h.value),i=ge(0),r.first=i),","!==h.id)break;Se()}return this}));e.exps=!0};var et=je("var",(function(e){var n,r,i;for(t["(onevar)"]&&v.onevar?ce("Too many var statements."):t["(global)"]||(t["(onevar)"]=!0),this.first=[];;){if(xe(w,h),n=ze(),v.esnext&&"const"===t[n]&&ce("const '"+n+"' has already been declared"),t["(global)"]&&!1===g[n]&&ce("Redefinition of '{a}'.",w,n),pe(n,"unused"),e)break;if(r=w,this.first.push(w),"="===h.id&&(xe(w,h),ve("="),xe(w,h),"undefined"===h.id&&ce("It is not necessary to initialize '{a}' to 'undefined'.",w,n),"="===me(0).id&&h.identifier&&ue("Variable {a} was not declared correctly.",h,h.value),i=ge(0),r.first=i),","!==h.id)break;Se()}return this}));function tt(){function e(){var e={},t=h;if(ve("{"),"}"!==h.id)for(;;){if("(end)"===h.id)ue("Missing '}' to match '{' from line {a}.",h,t.line);else{if("}"===h.id){ce("Unexpected comma.",w);break}","===h.id?ue("Unexpected comma.",h):"(string)"!==h.id&&ce("Expected a string and instead saw {a}.",h,h.value)}if(!0===e[h.value]?ce("Duplicate key '{a}'.",h,h.value):"__proto__"===h.value&&!v.proto||"__iterator__"===h.value&&!v.iterator?ce("The '{a}' key may produce unexpected results.",h,h.value):e[h.value]=!0,ve(),ve(":"),tt(),","!==h.id)break;ve(",")}ve("}")}function t(){var e=h;if(ve("["),"]"!==h.id)for(;;){if("(end)"===h.id)ue("Missing ']' to match '[' from line {a}.",h,e.line);else{if("]"===h.id){ce("Unexpected comma.",w);break}","===h.id&&ue("Unexpected comma.",h)}if(tt(),","!==h.id)break;ve(",")}ve("]")}switch(h.id){case"{":e();break;case"[":t();break;case"true":case"false":case"null":case"(number)":case"(string)":ve();break;case"-":ve("-"),w.character!==h.from&&ce("Unexpected space after '-'.",w),be(w,h),ve("(number)");break;default:ue("Expected a JSON value.",h)}}et.exps=!0,Ae("function",(function(){s&&ce("Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",w);var e=ze();return v.esnext&&"const"===t[e]&&ce("const '"+e+"' has already been declared"),be(w,h),pe(e,"unction"),Ze(e,!0),"("===h.id&&h.line===w.line&&ue("Function declarations are not invocable. Wrap the whole function invocation in parens."),this})),Le("function",(function(){var e=We();return e?be(w,h):xe(w,h),Ze(e),!v.loopfunc&&t["(loopage)"]&&ce("Don't make functions within a loop."),this})),Ae("if",(function(){var e=h;return ve("("),xe(this,e),Oe(),ge(20),"="===h.id&&(v.boss||ce("Expected a conditional expression and instead saw an assignment."),ve("="),ge(20)),ve(")",e),Oe(y,w),Ke(!0,!0),"else"===h.id&&(xe(w,h),ve("else"),"if"===h.id||"switch"===h.id?Ge(!0):Ke(!0,!0)),this})),Ae("try",(function(){var e,t,n;return Ke(!1),"catch"===h.id&&(ve("catch"),xe(w,h),ve("("),n=O,O=Object.create(n),t=h.value,"(identifier)"!==h.type?ce("Expected an identifier and instead saw '{a}'.",h,t):pe(t,"exception"),ve(),ve(")"),Ke(!1),e=!0,O=n),"finally"===h.id?(ve("finally"),void Ke(!1)):(e||ue("Expected '{a}' and instead saw '{b}'.",h,"catch",h.value),this)})),Ae("while",(function(){var e=h;return t["(breakage)"]+=1,t["(loopage)"]+=1,ve("("),xe(this,e),Oe(),ge(20),"="===h.id&&(v.boss||ce("Expected a conditional expression and instead saw an assignment."),ve("="),ge(20)),ve(")",e),Oe(y,w),Ke(!0,!0),t["(breakage)"]-=1,t["(loopage)"]-=1,this})).labelled=!0,Ae("with",(function(){var e=h;return x["use strict"]?ue("'with' is not allowed in strict mode.",w):v.withstmt||ce("Don't use 'with'.",w),ve("("),xe(this,e),Oe(),ge(0),ve(")",e),Oe(y,w),Ke(!0,!0),this})),Ae("switch",(function(){var e=h,n=!1;for(t["(breakage)"]+=1,ve("("),xe(this,e),Oe(),this.condition=ge(20),ve(")",e),Oe(y,w),xe(w,h),e=h,ve("{"),xe(w,h),c+=v.indent,this.cases=[];;)switch(h.id){case"case":switch(t["(verb)"]){case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:I.test(u[h.line-2])||ce("Expected a 'break' statement before 'case'.",w)}we(-v.indent),ve("case"),this.cases.push(ge(20)),n=!0,ve(":"),t["(verb)"]="case";break;case"default":switch(t["(verb)"]){case"break":case"continue":case"return":case"throw":break;default:I.test(u[h.line-2])||ce("Expected a 'break' statement before 'default'.",w)}we(-v.indent),ve("default"),n=!0,ve(":");break;case"}":return c-=v.indent,we(),ve("}",e),1!==this.cases.length&&"true"!==this.condition.id&&"false"!==this.condition.id||v.onecase||ce("This 'switch' should be an 'if'.",this),t["(breakage)"]-=1,void(t["(verb)"]=void 0);case"(end)":return void ue("Missing '{a}'.",h,"}");default:if(n)switch(w.id){case",":return void ue("Each value should have its own case label.");case":":n=!1,qe();break;default:return void ue("Missing ':' on a case clause.",w)}else{if(":"!==w.id)return void ue("Expected '{a}' and instead saw '{b}'.",h,"case",h.value);ve(":"),ue("Unexpected '{a}'.",w,":"),qe()}}})).labelled=!0,je("debugger",(function(){return v.debug||ce("All 'debugger' statements should be removed."),this})).exps=!0,function(){var e=je("do",(function(){t["(breakage)"]+=1,t["(loopage)"]+=1,this.first=Ke(!0),ve("while");var e=h;return xe(w,e),ve("("),Oe(),ge(20),"="===h.id&&(v.boss||ce("Expected a conditional expression and instead saw an assignment."),ve("="),ge(20)),ve(")",e),Oe(y,w),t["(breakage)"]-=1,t["(loopage)"]-=1,this}));e.labelled=!0,e.exps=!0}(),Ae("for",(function(){var e,n=h;if(t["(breakage)"]+=1,t["(loopage)"]+=1,ve("("),xe(this,n),Oe(),"in"===me("var"===h.id?1:0).id){if("var"===h.id)ve("var"),et.fud.call(et,!0);else{switch(t[h.value]){case"unused":t[h.value]="var";break;case"var":break;default:ce("Bad for in variable '{a}'.",h,h.value)}ve()}return ve("in"),ge(20),ve(")",n),e=Ke(!0,!0),v.forin&&e&&(e.length>1||"object"!==r(e[0])||"if"!==e[0].value)&&ce("The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",this),t["(breakage)"]-=1,t["(loopage)"]-=1,this}if(";"!==h.id)if("var"===h.id)ve("var"),et.fud.call(et);else for(;;){if(ge(0,"for"),","!==h.id)break;Se()}if(Te(w),ve(";"),";"!==h.id&&(ge(20),"="===h.id&&(v.boss||ce("Expected a conditional expression and instead saw an assignment."),ve("="),ge(20))),Te(w),ve(";"),";"===h.id&&ue("Expected '{a}' and instead saw '{b}'.",h,")",";"),")"!==h.id)for(;;){if(ge(0,"for"),","!==h.id)break;Se()}return ve(")",n),Oe(y,w),Ke(!0,!0),t["(breakage)"]-=1,t["(loopage)"]-=1,this})).labelled=!0,je("break",(function(){var e=h.value;return 0===t["(breakage)"]&&ce("Unexpected '{a}'.",h,this.value),v.asi||Te(this),";"!==h.id&&w.line===h.line&&("label"!==t[e]?ce("'{a}' is not a statement label.",h,e):O[e]!==t&&ce("'{a}' is out of scope.",h,e),this.first=h,ve()),Ve("break"),this})).exps=!0,je("continue",(function(){var e=h.value;return 0===t["(breakage)"]&&ce("Unexpected '{a}'.",h,this.value),v.asi||Te(this),";"!==h.id?w.line===h.line&&("label"!==t[e]?ce("'{a}' is not a statement label.",h,e):O[e]!==t&&ce("'{a}' is out of scope.",h,e),this.first=h,ve()):t["(loopage)"]||ce("Unexpected '{a}'.",h,this.value),Ve("continue"),this})).exps=!0,je("return",(function(){return this.line===h.line?("(regexp)"===h.id&&ce("Wrap the /regexp/ literal in parens to disambiguate the slash operator."),";"===h.id||h.reach||(xe(w,h),"="!==me().value||v.boss||le("Did you mean to return a conditional instead of an assignment?",w.line,w.character+1),this.first=ge(0))):v.asi||Te(this),Ve("return"),this})).exps=!0,je("throw",(function(){return Te(this),xe(w,h),this.first=ge(20),Ve("throw"),this})).exps=!0,Ne("class"),Ne("const"),Ne("enum"),Ne("export"),Ne("extends"),Ne("import"),Ne("super"),Ne("let"),Ne("yield"),Ne("implements"),Ne("interface"),Ne("package"),Ne("private"),Ne("protected"),Ne("public"),Ne("static");var nt=function(e,u,m){var S,_,j,A,k,L={};if(i.errors=[],i.undefs=[],g=Object.create(Q),ie(g,m||{}),u){if(S=u.predef,S)if(Array.isArray(S))for(_=0;_<S.length;_+=1)g[S[_]]=!0;else if("object"===r(S))for(j=Object.keys(S),_=0;_<j.length;_+=1)g[j[_]]=!!S[j[_]];for(k=Object.keys(u),A=0;A<k.length;A++)L[k[A]]=u[k[A]]}for(v=L,v.indent=v.indent||4,v.maxerr=v.maxerr||50,E="",_=0;_<v.indent;_+=1)E+=" ";for(var R in c=1,o=Object.create(g),O=o,t={"(global)":!0,"(name)":"(global)","(scope)":O,"(breakage)":0,"(loopage)":0},n=[t],T=[],null,d={},p=null,a={},s=!1,f=[],l=!1,C=0,de.init(e),b=!0,x={},y=w=h=Z["(begin)"],u)ne(u,R)&&re(R,w);oe(),ie(g,m||{}),Se.first=!0;try{switch(ve(),h.id){case"{":case"[":v.laxbreak=!0,l=!0,tt();break;default:$e(),x["use strict"]&&!v.globalstrict&&ce('Use the function form of "use strict".',y),qe()}ve("(end)");var N=function(e,t){do{if("string"===typeof t[e])return"unused"===t[e]?t[e]="var":"unction"===t[e]&&(t[e]="closure"),!0;t=t["(context)"]}while(t);return!1},I=function(e,t){if(a[e]){for(var n=[],r=0;r<a[e].length;r+=1)a[e][r]!==t&&n.push(a[e][r]);0===n.length?delete a[e]:a[e]=n}};for(_=0;_<i.undefs.length;_+=1)j=i.undefs[_].slice(0),N(j[2].value,j[0])?I(j[2].value,j[2].line):ce.apply(ce,j.slice(1))}catch(D){if(D){var M=h||{};i.errors.push({raw:D.raw,reason:D.message,line:D.line||M.line,character:D.character||M.from},null)}}return 0===i.errors.length};return nt.data=function(){var e,t,r,i,o,s,c,u={functions:[],options:v},f=[],p=[];for(s in nt.errors.length&&(u.errors=nt.errors),l&&(u.json=!0),a)ne(a,s)&&f.push({name:s,line:a[s]});for(f.length>0&&(u.implieds=f),T.length>0&&(u.urls=T),t=Object.keys(O),t.length>0&&(u.globals=t),i=1;i<n.length;i+=1){for(r=n[i],e={},o=0;o<G.length;o+=1)e[G[o]]=[];for(s in r)ne(r,s)&&"("!==s.charAt(0)&&(c=r[s],"unction"===c&&(c="unused"),Array.isArray(e[c])&&(e[c].push(s),"unused"===c&&p.push({name:s,line:r["(line)"],function:r["(name)"]})));for(o=0;o<G.length;o+=1)0===e[G[o]].length&&delete e[G[o]];e.name=r["(name)"],e.param=r["(params)"],e.line=r["(line)"],e.last=r["(last)"],u.functions.push(e)}for(s in p.length>0&&(u.unused=p),[],d)if("number"===typeof d[s]){u.member=d;break}return u},nt.report=function(e){var t,n,r,i,o,a,s,c,l,u=nt.data(),f=[],d="",p=[];function h(e,t){var n,r,i;if(t){for(p.push("<div><i>"+e+"</i> "),t=t.sort(),r=0;r<t.length;r+=1)t[r]!==i&&(i=t[r],p.push((n?", ":"")+i),n=!0);p.push("</div>")}}if(u.errors||u.implieds||u.unused){if(r=!0,p.push("<div id=errors><i>Error:</i>"),u.errors)for(o=0;o<u.errors.length;o+=1)t=u.errors[o],t&&(n=t.evidence||"",p.push("<p>Problem"+(isFinite(t.line)?" at line "+t.line+" character "+t.character:"")+": "+t.reason.entityify()+"</p><p class=evidence>"+(n&&(n.length>80?n.slice(0,77)+"...":n).entityify())+"</p>"));if(u.implieds){for(l=[],o=0;o<u.implieds.length;o+=1)l[o]="<code>"+u.implieds[o].name+"</code>&nbsp;<i>"+u.implieds[o].line+"</i>";p.push("<p><i>Implied global:</i> "+l.join(", ")+"</p>")}if(u.unused){for(l=[],o=0;o<u.unused.length;o+=1)l[o]="<code><u>"+u.unused[o].name+"</u></code>&nbsp;<i>"+u.unused[o].line+"</i> <code>"+u.unused[o]["function"]+"</code>";p.push("<p><i>Unused variable:</i> "+l.join(", ")+"</p>")}u.json&&p.push("<p>JSON: bad.</p>"),p.push("</div>")}if(!e){for(p.push("<br><div id=functions>"),u.urls&&h("URLs<br>",u.urls,"<br>"),u.json&&!r?p.push("<p>JSON: good.</p>"):u.globals?p.push("<div><i>Global</i> "+u.globals.sort().join(", ")+"</div>"):p.push("<div><i>No new global variables introduced.</i></div>"),o=0;o<u.functions.length;o+=1)i=u.functions[o],p.push("<br><div class=function><i>"+i.line+"-"+i.last+"</i> "+(i.name||"")+"("+(i.param?i.param.join(", "):"")+")</div>"),h("<big><b>Unused</b></big>",i.unused),h("Closure",i.closure),h("Variable",i["var"]),h("Exception",i.exception),h("Outer",i.outer),h("Global",i.global),h("Label",i.label);if(u.member){if(f=Object.keys(u.member),f.length){for(f=f.sort(),d="<br><pre id=members>/*members ",s=10,o=0;o<f.length;o+=1)a=f[o],c=a.name(),s+c.length>72&&(p.push(d+"<br>"),d="    ",s=1),s+=c.length+2,1===u.member[a]&&(c="<i>"+c+"</i>"),o<f.length-1&&(c+=", "),d+=c;p.push(d+"<br>*/</pre>")}p.push("</div>")}}return p.join("")},nt.jshint=nt,nt}();
/*!
 * JSHint, by JSHint Community.
 *
 * Licensed under the same slightly modified MIT license that JSLint is.
 * It stops evil-doers everywhere.
 *
 * JSHint is a derivative work of JSLint:
 *
 *   Copyright (c) 2002 Douglas Crockford  (www.JSLint.com)
 *
 *   Permission is hereby granted, free of charge, to any person obtaining
 *   a copy of this software and associated documentation files (the "Software"),
 *   to deal in the Software without restriction, including without limitation
 *   the rights to use, copy, modify, merge, publish, distribute, sublicense,
 *   and/or sell copies of the Software, and to permit persons to whom
 *   the Software is furnished to do so, subject to the following conditions:
 *
 *   The above copyright notice and this permission notice shall be included
 *   in all copies or substantial portions of the Software.
 *
 *   The Software shall be used for Good, not Evil.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 *   DEALINGS IN THE SOFTWARE.
 *
 * JSHint was forked from 2010-12-16 edition of JSLint.
 *
 */"object"===r(t)&&t&&(t.JSHINT=i)},4160:function(e,t,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42c6":function(e,t,n){},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"466d":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),a=n("1d80"),s=n("8aa5"),c=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),l=String(this);if(!a.global)return c(a,l);var u=a.unicode;a.lastIndex=0;var f,d=[],p=0;while(null!==(f=c(a,l))){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=s(l,o(a.lastIndex),u)),p++}return 0===p?null:d}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4840:function(e,t,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4a4b":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(f,l),n}},"4ae1":function(e,t,n){var r=n("23e7"),i=n("d066"),o=n("1c0b"),a=n("825a"),s=n("861d"),c=n("7c73"),l=n("0538"),u=n("d039"),f=i("Reflect","construct"),d=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!u((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var i=n.prototype,u=c(s(i)?i:Object.prototype),h=Function.apply.call(e,u,t);return s(h)?h:u}})},"4c53":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("sub")},{sub:function(){return i(this,"sub","","")}})},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,c=n("241c").f,l=n("44e7"),u=n("ad6d"),f=n("9f7f"),d=n("6eeb"),p=n("d039"),h=n("69f3").set,m=n("2626"),v=n("b622"),g=v("match"),b=i.RegExp,y=b.prototype,O=/a/g,x=/a/g,E=new b(O)!==O,w=f.UNSUPPORTED_Y,T=r&&o("RegExp",!E||w||p((function(){return x[g]=!1,b(O)!=O||b(x)==x||"/a/i"!=b(O,"i")})));if(T){var S=function(e,t){var n,r=this instanceof S,i=l(e),o=void 0===t;if(!r&&i&&e.constructor===S&&o)return e;E?i&&!o&&(e=e.source):e instanceof S&&(o&&(t=u.call(e)),e=e.source),w&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(E?new b(e,t):b(e,t),r?this:y,S);return w&&n&&h(s,{sticky:n}),s},C=function(e){e in S||s(S,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},_=c(b),j=0;while(_.length>j)C(_[j++]);y.constructor=S,S.prototype=y,d(i,"RegExp",S)}m("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),c=n("8418"),l=n("35a1");e.exports=function(e){var t,n,u,f,d,p,h=i(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,b=void 0!==g,y=l(h),O=0;if(b&&(g=r(g,v>2?arguments[2]:void 0,2)),void 0==y||m==Array&&a(y))for(t=s(h.length),n=new m(t);t>O;O++)p=b?g(h[O],O):h[O],c(n,O,p);else for(f=y.call(h),d=f.next,n=new m;!(u=d.call(f)).done;O++)p=b?o(f,g,[u.value,O],!0):u.value,c(n,O,p);return n.length=O,n}},"4ec9":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var i=c(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!g&&b||"string"===typeof r&&-1===r.indexOf(y)){var o=n(t,e,this,r);if(o.done)return o.value}var c=i(e),p=String(this),h="function"===typeof r;h||(r=String(r));var m=c.global;if(m){var x=c.unicode;c.lastIndex=0}var E=[];while(1){var w=u(c,p);if(null===w)break;if(E.push(w),!m)break;var T=String(w[0]);""===T&&(c.lastIndex=l(p,a(c.lastIndex),x))}for(var S="",C=0,_=0;_<E.length;_++){w=E[_];for(var j=String(w[0]),A=f(d(s(w.index),p.length),0),k=[],L=1;L<w.length;L++)k.push(v(w[L]));var R=w.groups;if(h){var N=[j].concat(k,A,p);void 0!==R&&N.push(R);var I=String(r.apply(void 0,N))}else I=O(j,p,A,k,R,r);A>=C&&(S+=p.slice(C,A)+I,C=A+j.length)}return S+p.slice(C)}];function O(e,n,r,i,a,s){var c=r+e.length,l=i.length,u=m;return void 0!==a&&(a=o(a),u=h),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var f=p(u/10);return 0===f?t:f<=l?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s}))}}))},"53b7":function(e,t,n){"use strict";n("97d3")},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5543:function(e,t,n){"use strict";n("c3f2")},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56cb":function(e,t,n){(function(e){var r,i,o;n("7db0");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b"),n("b743")):(i=[n("366b"),n("b743")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",c),t.off("change",l),t.off("viewportChange",u),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",l)),i&&(t.state.foldGutter=new n(r(i)),s(t),t.on("gutterClick",c),t.on("change",l),t.on("viewportChange",u),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",l))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==n)return r[i]}function o(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function a(e,n,r){var a=e.state.foldGutter.options,s=n,c=e.foldOption(a,"minFoldSize"),l=e.foldOption(a,"rangeFinder");e.eachLine(n,r,(function(n){var r=null;if(i(e,s))r=o(a.indicatorFolded);else{var u=t(s,0),f=l&&l(e,u);f&&f.to.line-f.from.line>=c&&(r=o(a.indicatorOpen))}e.setGutterMarker(n,a.gutter,r),++s}))}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){a(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a.rangeFinder)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.from<t.from&&(a(e,n.from,t.from),t.from=n.from),n.to>t.to&&(a(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&a(e,r,r+1)}}}))}).call(this,n("62e4")(e))},"56d7":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"makeRandomName",(function(){return Ve})),n.d(r,"dateFormat",(function(){return Ge})),n.d(r,"preventEvent",(function(){return qe})),n.d(r,"log",(function(){return $e}));var i={};n.r(i),n.d(i,"save",(function(){return Je})),n.d(i,"remove",(function(){return Ze})),n.d(i,"get",(function(){return et})),n.d(i,"getList",(function(){return tt})),n.d(i,"cache",(function(){return nt})),n.d(i,"getCache",(function(){return rt}));var o={};n.r(o),n.d(o,"db",(function(){return it})),n.d(o,"api",(function(){return ot})),n.d(o,"getObject",(function(){return at})),n.d(o,"getApi",(function(){return st})),n.d(o,"getApiMock",(function(){return ct})),n.d(o,"default",(function(){return lt}));var a={};n.r(a),n.d(a,"axios",(function(){return Xe.a})),n.d(a,"ajax",(function(){return ft})),n.d(a,"apiDoc",(function(){return o})),n.d(a,"getApiOptionDEV",(function(){return dt})),n.d(a,"getApiOption",(function(){return pt})),n.d(a,"$api",(function(){return ht}));n("cb29"),n("d81d"),n("e260"),n("e6cf"),n("cca6"),n("a79d");var s=n("7a23"),c=(n("2a19"),{key:0});function l(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("svg",{width:"16",height:"16",type:n.type,viewBox:"0 0 1024 1024"},[n.title?(Object(s["j"])(),Object(s["e"])("title",c,Object(s["o"])(n.title),1)):Object(s["f"])("",!0),Object(s["i"])("g",{innerHTML:o.svgHtml},null,8,["innerHTML"])],8,["type"])}var u='<path  d="M512 959.695438c-247.264547 0-447.696462-200.431915-447.696462-447.696462s200.431915-447.694415 447.696462-447.694415 447.696462 200.428845 447.696462 447.694415S759.264547 959.695438 512 959.695438L512 959.695438zM706.650235 473.068316 550.929638 473.068316 550.929638 317.347718c0-21.527292-17.461697-38.929638-38.930661-38.929638-21.527292 0-38.932708 17.402345-38.932708 38.929638l0 155.720597L317.346695 473.068316c-21.527292 0-38.927591 17.402345-38.927591 38.929638 0 21.471011 17.400299 38.929638 38.927591 38.929638l155.720597 0 0 155.722644c0 21.467941 17.405415 38.927591 38.932708 38.927591 21.467941 0 38.930661-17.45965 38.930661-38.927591L550.930661 550.928614l155.720597 0c21.471011 0 38.929638-17.45965 38.929638-38.929638C745.580896 490.470661 728.121246 473.068316 706.650235 473.068316L706.650235 473.068316z"></path>',f='<path d="M802.6 727.9L591.5 516.8l211.1-211.1c21-21 21-55.4 0-76.5-21-21-55.4-21-76.5 0L515 440.3 303.9 229.2c-21-21-55.4-21-76.5 0-21 21-21 55.4 0 76.5l211.1 211.1-211.1 211.1c-21 21-21 55.4 0 76.5 21 21 55.4 21 76.5 0L515 593.3l211.1 211.1c21 21 55.4 21 76.5 0s21.1-55.4 0-76.5z"></path>',d='<defs><style type="text/css"></style></defs><path d="M722.0992 279.1936h146.7392l-184.5248-192v154.2144c-0.0256 20.8384 16.9472 37.7856 37.7856 37.7856z" p-id="10511"></path><path d="M722.0992 321.024c-43.904 0-79.62112-35.712-79.62112-79.616V46.976H192.7168c-40.32 0-73.1136 32.7936-73.1136 73.1136V898.4064c0 40.32 32.7936 73.088 73.1136 73.088h640.1536c40.32 0 73.1136-32.7936 73.1136-73.088V321.024h-183.8848zM691.2 620.8h-153.6v153.6c0 14.14144-11.45856 25.6-25.6 25.6s-25.6-11.45856-25.6-25.6v-153.6H332.8c-14.14144 0-25.6-11.45856-25.6-25.6s11.45856-25.6 25.6-25.6h153.6v-153.6c0-14.14144 11.45856-25.6 25.6-25.6s25.6 11.45856 25.6 25.6v153.6h153.6c14.14144 0 25.6 11.45856 25.6 25.6s-11.45856 25.6-25.6 25.6z" p-id="10512"></path>',p='<path d="M192 207.385471C192 136.485942 241.210156 107.716442 302.035675 143.197996L849.964326 462.823052C910.735347 498.272818 910.789843 555.716454 849.964326 591.198006L302.035675 910.82304C241.26465 946.272806 192 917.598669 192 846.635565L192 207.385471Z" />',h='<path d="M374.613333 688a42.666667 42.666667 0 0 0-66.56-53.333333L298.666667 646.4V256a42.666667 42.666667 0 1 0-85.333334 0v390.4l-9.386666-11.733333a42.666667 42.666667 0 1 0-66.56 53.333333l85.333333 106.666667a42.666667 42.666667 0 0 0 66.56 0l85.333333-106.666667zM512 768a42.666667 42.666667 0 0 1 0-85.333333h341.333333a42.666667 42.666667 0 1 1 0 85.333333h-341.333333z m0-213.333333a42.666667 42.666667 0 0 1 0-85.333334h213.333333a42.666667 42.666667 0 1 1 0 85.333334h-213.333333z m-42.666667-256a42.666667 42.666667 0 0 0 42.666667 42.666666h128a42.666667 42.666667 0 1 0 0-85.333333h-128a42.666667 42.666667 0 0 0-42.666667 42.666667z" />',m='<path d="M832.1 592.7c-11 0-20 9-20 20v151.2c0 11-9 20-20 20H231.9c-11 0-20-9-20-20V612.7c0-11-9-20-20-20s-20 9-20 20v151.2c0 33.1 26.9 60 60 60H792c33.1 0 60-26.9 60-60V612.7c0.1-11-8.9-20-19.9-20z" />\n<path transform="rotate(180) translate(0,120)" transform-origin="50% 50%" d="M468.3 658.6c11.3 11.9 27.2 18.7 43.6 18.7 16.4 0 32.3-6.8 43.6-18.8l99.1-104.7c7.6-8 7.2-20.7-0.8-28.3-8-7.6-20.7-7.2-28.3 0.8l-93.6 98.9V220c0-11-9-20-20-20s-20 9-20 20v405.2l-93.4-98.6c-7.6-8-20.3-8.4-28.3-0.8-8 7.6-8.4 20.3-0.8 28.3l98.9 104.5z" />',v='<path d="M900.3008 521.728c-1.1264-2.7648-28.9792-69.0176-90.4192-135.8848-36.2496-39.424-76.8-70.9632-120.5248-93.5936-54.8864-28.4672-114.7904-42.9056-177.8688-42.9056-64.6144 0-125.44 14.4384-180.5312 42.9056-43.9296 22.6304-84.3776 54.1696-120.1152 93.7984-60.5184 66.9696-86.528 133.4272-87.552 136.192l-3.3792 8.8064 4.5056 8.2944c1.3312 2.4576 32.8704 59.8016 96.0512 117.6576 37.1712 34.0992 77.824 61.2352 120.6272 80.6912 53.76 24.4736 111.104 36.9664 170.496 36.9664 58.5728 0 115.5072-12.3904 169.2672-36.9664 42.7008-19.456 83.456-46.6944 120.9344-80.6912 63.6928-57.7536 96.256-115.0976 97.5872-117.4528l4.8128-8.704-3.8912-9.1136zM773.2224 627.6096c-34.4064 30.9248-71.4752 55.6032-110.1824 73.216-48.128 21.8112-99.0208 32.8704-151.4496 32.8704-53.1456 0-104.5504-11.0592-152.7808-32.8704-38.8096-17.6128-75.6736-42.1888-109.6704-73.1136-44.9536-40.8576-73.0112-82.3296-83.7632-99.6352 8.9088-19.456 33.4848-67.8912 76.9024-115.712 32.3584-35.6352 68.8128-63.8976 108.2368-84.1728 49.0496-25.1904 103.2192-37.888 161.0752-37.888 56.2176 0 109.4656 12.8 158.3104 37.888 39.3216 20.2752 75.9808 48.64 109.056 84.3776 44.032 47.616 69.8368 95.9488 79.4624 115.6096-11.3664 17.5104-40.0384 58.6752-85.1968 99.4304z" /><path d="M511.5904 349.4912c-83.5584 0-151.552 67.9936-151.552 151.552s67.9936 151.552 151.552 151.552 151.552-67.9936 151.552-151.552-67.9936-151.552-151.552-151.552z m0 262.144c-61.0304 0-110.592-49.664-110.592-110.592 0-61.0304 49.664-110.592 110.592-110.592 61.0304 0 110.592 49.664 110.592 110.592 0 61.0304-49.5616 110.592-110.592 110.592z" />',g='<path d="M785.8 346.7L606 173.4c-8.4-8.1-19.6-12.6-31.4-12.6l-282.6-0.6s-67.4 4.4-67.4 66v571.7s3 66 67.4 66h439.8s67.4-3.1 67.4-66V378.1c0.1-11.8-4.8-23.1-13.4-31.4zM606.9 234.9l117.8 114.4h-95.4s-22.5-1-22.5-22c0.1-21 0.1-92.4 0.1-92.4z m147.5 562.9c0 22.1-22.5 22-22.5 22H292.1c-21 0-22.5-22-22.5-22V226.1c0-20.5 22.5-22 22.5-22H562v123.1c0 61 67.4 66 67.4 66h125v404.6z" /><path d="M368.8 478.4c0 12.2 10.1 22 22.5 22h242.5c12.4 0 22.5-9.9 22.5-22 0-12.2-10.1-22-22.5-22H391.3c-12.4 0-22.5 9.9-22.5 22zM633.8 567.4H391.3c-12.4 0-22.5 9.9-22.5 22s10.1 22 22.5 22h242.5c12.4 0 22.5-9.9 22.5-22s-10.1-22-22.5-22zM633.8 678.4H391.3c-12.4 0-22.5 9.9-22.5 22 0 12.2 10.1 22 22.5 22h242.5c12.4 0 22.5-9.9 22.5-22-0.1-12.1-10.1-22-22.5-22z" />',b='<path d="M832.1 592.7c-11 0-20 9-20 20v151.2c0 11-9 20-20 20H231.9c-11 0-20-9-20-20V612.7c0-11-9-20-20-20s-20 9-20 20v151.2c0 33.1 26.9 60 60 60H792c33.1 0 60-26.9 60-60V612.7c0.1-11-8.9-20-19.9-20z" /><path d="M468.3 658.6c11.3 11.9 27.2 18.7 43.6 18.7 16.4 0 32.3-6.8 43.6-18.8l99.1-104.7c7.6-8 7.2-20.7-0.8-28.3-8-7.6-20.7-7.2-28.3 0.8l-93.6 98.9V220c0-11-9-20-20-20s-20 9-20 20v405.2l-93.4-98.6c-7.6-8-20.3-8.4-28.3-0.8-8 7.6-8.4 20.3-0.8 28.3l98.9 104.5z" />',y='<defs><style type="text/css"></style></defs><path d="M614.34 103.723l0 51.541-408.562 0c-38.542 0-51.427 29.191-51.427 51.769 0 24.744-0.57 555.886-0.57 610.619 0 34.893 37.515 50.4 52.567 50.4l613.013 0c21.551 0 49.83-17.675 49.83-70.811l0-385.528 51.427 0 0 407.535c0 27.367-4.105 101.713-102.853 101.713l-612.557 0c-53.137 0-101.827-33.068-101.827-102.511l0-613.356c0-59.978 38.085-101.371 101.827-101.371 86.775 0 409.132 0 409.132 0l0 0zM614.34 103.723zM893.252 233.601c-19.043-19.043-75.6-76.057-88.144-89.512-22.806-24.288-52.909-25.884-76.854-3.307-24.06 22.691-409.702 395.107-409.702 395.107l-115.396 287.692 265.685-118.247c0 0 393.51-378.914 420.307-405.711 22.578-22.578 18.016-51.997 4.105-66.023l0 0zM268.608 755.621l68.53-165.683 85.748 92.932-154.28 72.75zM460.973 647.75l-92.59-98.748 288.263-278.456 96.239 100.23-291.911 276.973zM785.724 335.77l-93.502-97.038 71.381-68.645 95.099 93.845-72.978 71.838zM785.724 335.77z" p-id="45551"></path>',O='<defs><style type="text/css"></style></defs><path d="M711.5 897.1c-104.2 0-189-84.8-189-189s84.8-189 189-189 189 84.8 189 189-84.8 189-189 189z m0-336c-81 0-147 65.9-147 147 0 81 66 147 147 147s147-66 147-147c0-81.1-66-147-147-147zM375.5 476.5h-168c-57.9 0-105-47.1-105-105v-168c0-57.9 47.1-105 105-105h168c57.9 0 105 47.1 105 105v168c0 57.9-47.1 105-105 105z m-168-336c-34.7 0-63 28.3-63 63v168c0 34.7 28.3 63 63 63h168c34.7 0 63-28.3 63-63v-168c0-34.7-28.3-63-63-63h-168zM375.5 896.5h-168c-57.9 0-105-47.1-105-105v-168c0-57.9 47.1-105 105-105h168c57.9 0 105 47.1 105 105v168c0 57.9-47.1 105-105 105z m-168-336c-34.7 0-63 28.3-63 63v168c0 34.7 28.3 63 63 63h168c34.7 0 63-28.3 63-63v-168c0-34.7-28.3-63-63-63h-168zM795.5 476.5h-168c-57.9 0-105-47.1-105-105v-168c0-57.9 47.1-105 105-105h168c57.9 0 105 47.1 105 105v168c0 57.9-47.1 105-105 105z m-168-336c-34.7 0-63 28.3-63 63v168c0 34.7 28.3 63 63 63h168c34.7 0 63-28.3 63-63v-168c0-34.7-28.3-63-63-63h-168zM900.5 917.5c-5.4 0-10.7-2.1-14.8-6.2L855 880.7c-8.2-8.2-8.2-21.5 0-29.7s21.5-8.2 29.7 0l30.6 30.6c8.2 8.2 8.2 21.5 0 29.7-4.1 4.2-9.4 6.2-14.8 6.2z" p-id="5422"></path>',x='<path d="M105.6 347.2v-232.96C105.6 55.168 153.664 7.04 212.608 7.04h597.12L1024 226.688v441.792h-53.568V280.32h-133.888a78.848 78.848 0 0 1-80.32-80.32V60.672H212.672a53.696 53.696 0 0 0-53.568 53.504v232.96h917.12c29.504 0 53.568 24.128 53.568 53.632v374.848c0 29.44-24.064 53.504-53.568 53.504H159.104v80.32c0 29.44 24.064 53.568 53.568 53.568h704.256c29.44 0 53.504-24.064 53.504-53.568V613.248H1024v296.32c0 58.944-48.128 107.136-107.072 107.136H212.672a107.328 107.328 0 0 1-107.136-107.136v-80.32H54.144a53.696 53.696 0 0 1-53.568-53.568V400.768c0-29.504 24.064-53.568 53.568-53.568h51.392z m236.288 100.928L219.712 768h55.936l29.12-80.192h133.952L467.84 768h56l-122.24-319.872h-59.584z m-21.44 196.672l50.56-140.224h1.856l50.176 140.224H320.32z m234.752-196.672V768h52.352v-122.752h79.36c77.888 0 116.864-33.152 116.864-99.008 0-65.408-38.912-98.112-116.032-98.112H555.136z m52.352 44.8h76.16c22.848 0 39.872 4.032 50.688 12.544 10.752 8.064 16.512 21.504 16.512 40.768s-5.376 33.152-16.128 41.664c-10.752 8.064-27.776 12.544-51.008 12.544h-76.16v-107.52z m241.024-44.8V768h52.48V448.128h-52.48z m-38.784-366.016v117.76c0 13.44 10.688 26.88 26.752 26.88h112.512l-139.264-144.64z" ></path>',E='<path d="M512 200.3968c42.0864 0 82.8416 8.192 121.2416 24.4736 37.0688 15.6672 70.4512 38.1952 99.0208 66.7648 28.672 28.672 51.0976 61.952 66.7648 99.0208 16.2816 38.4 24.4736 79.1552 24.4736 121.2416s-8.192 82.8416-24.4736 121.2416C783.36 670.208 760.832 703.5904 732.2624 732.16c-28.672 28.672-61.952 51.0976-99.0208 66.7648-38.4 16.2816-79.1552 24.4736-121.2416 24.4736s-82.8416-8.192-121.2416-24.4736c-37.0688-15.6672-70.4512-38.1952-99.0208-66.7648-28.672-28.672-51.0976-61.952-66.7648-99.0208-16.2816-38.4-24.4736-79.1552-24.4736-121.2416s8.192-82.8416 24.4736-121.2416c15.6672-37.0688 38.1952-70.4512 66.7648-99.0208 28.672-28.672 61.952-51.0976 99.0208-66.7648 38.4-16.2816 79.1552-24.4736 121.2416-24.4736m0-40.96c-194.7648 0-352.5632 157.9008-352.5632 352.5632S317.2352 864.5632 512 864.5632 864.5632 706.7648 864.5632 512 706.7648 159.4368 512 159.4368z" /><path d="M516.1984 693.4528c-2.048 0-4.096-1.2288-5.8368-3.6864-1.8432-2.4576-2.7648-5.5296-2.7648-9.216 0-19.0464 13.824-74.9568 41.472-167.7312 16.896-56.7296 25.3952-88.8832 25.3952-96.4608 0-6.2464-2.2528-11.264-6.656-14.848-4.4032-3.6864-10.8544-5.5296-19.1488-5.5296-15.1552 0-33.4848 6.0416-54.9888 18.2272s-45.3632 32.5632-71.4752 61.3376l17.2032 13.312c23.04-22.4256 37.7856-35.84 44.4416-39.936 6.656-4.1984 12.5952-6.2464 17.8176-6.2464 4.7104 0 7.0656 2.6624 7.0656 7.8848 0 4.7104-0.9216 10.0352-2.7648 16.0768-39.2192 126.976-58.7776 206.848-58.7776 239.5136 0 10.24 2.6624 18.1248 7.9872 23.8592 5.3248 5.7344 12.5952 8.6016 21.7088 8.6016 10.4448 0 23.9616-4.7104 40.3456-14.1312 16.4864-9.4208 42.5984-30.9248 78.4384-64.7168l-15.2576-14.848c-34.4064 32.3584-55.9104 48.5376-64.2048 48.5376z" /><path d="M567.1936 320.2048m-34.7136 0a34.7136 34.7136 0 1 0 69.4272 0 34.7136 34.7136 0 1 0-69.4272 0Z" />',w='<path d="M855.7568 366.7968c-18.7392-44.4416-45.6704-84.2752-79.9744-118.5792-34.2016-34.304-74.1376-61.1328-118.5792-79.9744-45.9776-19.456-94.8224-29.2864-145.2032-29.2864-50.3808 0-99.2256 9.8304-145.2032 29.2864-44.4416 18.7392-84.2752 45.6704-118.5792 79.9744s-61.1328 74.1376-79.9744 118.5792c-19.456 45.9776-29.2864 94.8224-29.2864 145.2032s9.8304 99.2256 29.2864 145.2032c18.7392 44.4416 45.6704 84.2752 79.9744 118.5792 34.304 34.304 74.1376 61.1328 118.5792 79.9744 45.9776 19.456 94.8224 29.2864 145.2032 29.2864 50.3808 0 99.2256-9.8304 145.2032-29.2864 44.4416-18.7392 84.2752-45.6704 118.5792-79.9744 34.304-34.304 61.1328-74.1376 79.9744-118.5792 19.456-45.9776 29.2864-94.8224 29.2864-145.2032s-9.8304-99.2256-29.2864-145.2032zM512 844.0832c-183.0912 0-332.0832-148.992-332.0832-332.0832S328.9088 179.9168 512 179.9168 844.0832 328.9088 844.0832 512 695.0912 844.0832 512 844.0832z" /><path d="M512 709.4272m-30.72 0a30.72 30.72 0 1 0 61.44 0 30.72 30.72 0 1 0-61.44 0Z" /><path d="M514.6624 283.9552c-30.9248-0.2048-57.9584 6.656-80.6912 20.5824-18.5344 11.4688-33.792 27.2384-45.1584 47.104-16.1792 28.16-19.8656 55.9104-20.5824 64.4096-0.1024 0.7168-0.1024 1.4336-0.2048 2.1504v1.4336c0 16.9984 13.7216 30.72 30.72 30.72 16.4864 0 30.0032-13.0048 30.72-29.3888 0.512-4.7104 3.1744-22.9376 13.5168-40.1408 14.336-23.8592 37.2736-35.4304 69.8368-35.4304h1.2288c32.3584 0.3072 55.1936 9.1136 67.9936 26.3168 14.336 19.2512 13.312 44.2368 11.264 51.2-5.12 17.92-26.2144 38.912-46.6944 59.1872-17.1008 16.9984-34.7136 34.5088-46.4896 53.5552-18.432 29.696-17.92 85.4016-17.6128 96.256 0.4096 16.6912 14.1312 29.9008 30.72 29.9008h0.8192c16.9984-0.512 30.3104-14.6432 29.9008-31.5392-0.6144-22.016 2.6624-52.9408 8.3968-62.1568 8.0896-13.0048 22.4256-27.3408 37.6832-42.496 26.0096-25.8048 52.8384-52.5312 62.3616-85.7088 5.5296-19.1488 8.192-65.7408-21.0944-104.96-16.9984-22.9376-51.0976-50.4832-116.6336-50.9952z" />',T='<path d="M432.2304 103.2192c-9.216-6.5536-22.016-4.3008-28.5696 4.9152-6.5536 9.216-4.3008 22.016 4.9152 28.5696l59.0848 41.7792 3.2768 2.2528c-71.8848 9.9328-138.3424 42.8032-190.5664 95.0272-63.3856 63.3856-98.2016 147.5584-98.2016 237.1584 0 45.568 9.0112 89.7024 26.7264 131.3792 17.1008 40.1408 41.5744 76.1856 72.704 107.008 3.9936 3.9936 9.216 5.9392 14.4384 5.9392 5.3248 0 10.5472-2.048 14.5408-6.0416 7.9872-7.9872 7.8848-20.992-0.1024-28.9792-56.32-55.7056-87.2448-130.048-87.2448-209.2032 0-78.6432 30.6176-152.576 86.2208-208.1792 46.4896-46.4896 105.8816-75.5712 169.984-83.7632l-2.9696 3.072-52.4288 52.9408c-7.9872 7.9872-7.8848 20.992 0.1024 28.9792 3.9936 3.9936 9.216 5.9392 14.4384 5.9392 5.3248 0 10.5472-2.048 14.5408-6.0416l109.4656-110.4896-130.3552-92.2624zM841.9328 511.0784c0-45.568-9.0112-89.7024-26.7264-131.3792-17.1008-40.1408-41.5744-76.1856-72.704-107.008-3.9936-3.9936-9.216-5.9392-14.4384-5.9392-5.3248 0-10.5472 2.048-14.5408 6.0416-7.9872 7.9872-7.8848 20.992 0.1024 28.9792 56.32 55.7056 87.2448 130.048 87.2448 209.2032 0 78.6432-30.6176 152.576-86.2208 208.1792-46.4896 46.4896-105.8816 75.5712-169.984 83.7632l2.9696-3.072 52.4288-52.9408c7.9872-7.9872 7.8848-20.992-0.1024-28.9792-3.9936-3.9936-9.216-5.9392-14.4384-5.9392-5.3248 0-10.5472 2.048-14.5408 6.0416L461.6192 828.7232l130.1504 92.0576c9.216 6.5536 22.016 4.3008 28.5696-4.9152 6.5536-9.216 4.3008-22.016-4.9152-28.5696l-59.0848-41.7792-3.2768-2.2528c71.8848-9.9328 138.3424-42.8032 190.5664-95.0272 63.3856-63.3856 98.304-147.5584 98.304-237.1584z" />',S='<defs><style type="text/css"></style></defs><path d="M344.4593 791.382c15.4235 0 27.902-12.4795 27.902-27.902V456.558592c0-15.4225-12.4795-27.902-27.902-27.902-15.4225 0-27.902 12.4805-27.902 27.902v306.92249599999997C316.5573 778.9036 329.0368 791.382 344.4593 791.382zM511.872 791.382c15.4235 0 27.902-12.4795 27.902-27.902V456.558592c0-15.4225-12.4795-27.902-27.902-27.902s-27.902 12.4805-27.902 27.902v306.92249599999997C483.969 778.9036 496.4485 791.382 511.872 791.382zM679.2837 791.382c15.4235 0 27.902-12.4795 27.902-27.902V456.558592c0-15.4225-12.4795-27.902-27.902-27.902s-27.902 12.4805-27.902 27.902v306.92249599999997C651.3818 778.9036 663.8602 791.382 679.2837 791.382zM818.7935 149.6361H703.2340479999999c-12.4795-48.0113-55.8039-83.7059-107.6572-83.7059H428.16512000000006c-51.8533 0-95.1777 35.6946-107.6572 83.7059H204.949504c-61.5526 0-111.6078 50.0828-111.6078 111.6078v27.902976h27.901952v27.901952h55.803904v530.138112c0 61.526 50.0552 111.6078 111.6078 111.6078h446.432256c61.5547 0 111.6078-50.0818 111.6078-111.6078V317.047808h55.803904v-27.901952h27.901952v-27.902976C930.4013 199.7179 880.3482 149.6361 818.7935 149.6361zM428.1651 121.7341h167.411712c20.5445 0 38.3652 11.308 48.0389 27.902H380.12723200000005C389.801 133.0422 407.6206 121.7341 428.1651 121.7341zM790.8915 847.1859c0 30.7896-25.0399 55.8039-55.8039 55.8039H288.65536000000003c-30.763 0-59.6726-25.0143-59.6726-55.8039l3.8687-530.1381h558.040064V847.1859199999999zM149.1446 261.2439c0-30.7896 25.0419-55.8039 55.8039-55.8039H818.793472c30.7651 0 55.8039 25.0143 55.8039 55.8039H149.144576z" p-id="46996"></path>',C='<path d="M777.1136 838.144H246.8864c-33.8944 0-61.44-27.5456-61.44-61.44v-529.408c0-33.8944 27.5456-61.44 61.44-61.44h446.8736c12.9024 0 25.3952 3.9936 35.84 11.5712l83.2512 59.904c15.9744 11.4688 25.6 30.208 25.6 49.8688v469.504c0.1024 33.8944-27.5456 61.44-61.3376 61.44zM402.6368 245.4528v75.264c0 11.264 9.216 20.48 20.48 20.48h180.224c11.264 0 20.48-9.216 20.48-20.48v-75.264l-0.1024-18.6368H402.432l0.2048 18.6368zM361.472 226.816H246.8864c-11.264 0-20.48 9.216-20.48 20.48v529.408c0 11.264 9.216 20.48 20.48 20.48h530.1248c11.264 0 20.48-9.216 20.48-20.48V307.2c0-6.5536-3.1744-12.8-8.4992-16.5888l-83.2512-59.904c-3.4816-2.56-7.68-3.8912-11.9808-3.8912H664.576l0.3072 18.6368v75.264c0 33.8944-27.5456 61.44-61.44 61.44h-180.224c-33.8944 0-61.44-27.5456-61.44-61.44v-75.264l-0.3072-18.6368z" /><path d="M668.9792 730.9312H357.5808c-33.8944 0-61.44-27.5456-61.44-61.44V554.7008c0-33.8944 27.5456-61.44 61.44-61.44h311.3984c33.8944 0 61.44 27.5456 61.44 61.44v114.7904c0 33.8944-27.5456 61.44-61.44 61.44zM357.5808 534.2208c-11.264 0-20.48 9.216-20.48 20.48v114.7904c0 11.264 9.216 20.48 20.48 20.48h311.3984c11.264 0 20.48-9.216 20.48-20.48V554.7008c0-11.264-9.216-20.48-20.48-20.48H357.5808z" />',_='<path d="M940.571 852.693l-214.475-214.722c44.778-60.855 69.263-134.077 69.263-211.012 0-95.732-37.354-185.78-104.889-253.311-67.781-67.536-157.825-104.889-253.557-104.889s-185.78 37.354-253.311 104.889c-139.518 139.518-139.518 366.859 0 506.626 67.536 67.536 157.579 104.889 253.311 104.889 77.18 0 150.155-24.487 211.257-69.263l214.475 214.722c21.52 21.52 56.403 21.52 77.676 0 21.77-21.52 21.77-56.403 0.25-77.921zM252.866 611.256c-101.425-101.673-101.425-266.916 0-368.342 49.227-49.227 114.535-76.192 184.295-76.192 69.511 0 134.819 26.966 184.047 76.192 49.227 49.227 76.443 114.535 76.443 184.295 0 69.762-27.211 135.065-76.443 184.295-49.227 49.227-114.535 76.192-184.047 76.192-69.762-0.25-135.065-27.211-184.295-76.443z" />',j='<path d="M513.4336 720.0768c-114.7904 0-208.0768-93.3888-208.0768-208.0768 0-114.7904 93.3888-208.0768 208.0768-208.0768 55.5008 0 107.7248 21.7088 147.0464 61.0304 39.3216 39.3216 61.0304 91.5456 61.0304 147.0464 0 114.7904-93.3888 208.0768-208.0768 208.0768z m0-369.8688c-89.1904 0-161.792 72.6016-161.792 161.792s72.6016 161.792 161.792 161.792 161.792-72.6016 161.792-161.792-72.6016-161.792-161.792-161.792z" /><path d="M565.1456 905.0112H458.8544c-38.2976 0-69.4272-31.1296-69.4272-69.4272v-23.7568c-27.8528-11.4688-53.76-26.7264-77.4144-45.4656l-21.7088 12.1856c-33.3824 18.6368-75.6736 6.7584-94.4128-26.5216l-53.248-94.8224c-18.6368-33.1776-6.9632-75.4688 26.0096-94.3104l22.1184-12.6976c-1.7408-12.0832-3.072-24.8832-3.072-38.2976 0-13.5168 1.3312-26.624 3.072-38.5024L168.5504 460.8c-32.9728-18.8416-44.6464-61.1328-26.0096-94.3104l53.248-94.8224c18.7392-33.28 61.1328-45.2608 94.4128-26.5216l21.7088 12.1856c23.6544-18.7392 49.5616-33.9968 77.4144-45.4656V188.416c0-38.2976 31.1296-69.4272 69.4272-69.4272h106.3936c38.2976 0 69.4272 31.1296 69.4272 69.4272v23.4496c27.8528 11.4688 53.76 26.7264 77.4144 45.4656l21.7088-12.1856c33.3824-18.6368 75.6736-6.7584 94.4128 26.5216l53.248 94.8224c18.6368 33.1776 6.9632 75.4688-26.0096 94.3104l-22.1184 12.6976c1.7408 11.9808 3.072 25.088 3.072 38.5024 0 13.4144-1.3312 26.2144-3.072 38.2976l22.1184 12.6976c32.9728 18.8416 44.6464 61.1328 26.0096 94.3104l-53.248 94.8224c-12.6976 22.6304-36.352 35.4304-60.6208 35.4304-11.4688 0-23.04-2.8672-33.792-8.8064l-21.7088-12.1856c-23.6544 18.7392-49.5616 33.9968-77.4144 45.4656v23.552c0 38.2976-31.1296 69.4272-69.4272 69.4272zM313.9584 716.288c6.4512 0 12.9024 2.2528 17.92 6.656 25.3952 21.9136 54.272 38.8096 85.7088 50.2784 10.752 3.9936 18.0224 14.336 18.0224 25.8048V835.584c0 12.8 10.3424 23.1424 23.1424 23.1424h106.3936c12.8 0 23.1424-10.3424 23.1424-23.1424v-36.5568c0-11.4688 7.2704-21.8112 18.0224-25.8048 31.4368-11.5712 60.3136-28.4672 85.7088-50.2784 8.704-7.4752 21.2992-8.8064 31.3344-3.1744l32.9728 18.432c11.1616 6.2464 25.1904 2.2528 31.4368-8.8064l53.248-94.8224c6.2464-11.0592 2.3552-25.1904-8.704-31.4368l-33.3824-19.0464c-9.9328-5.632-15.36-17.1008-13.5168-28.3648 2.3552-13.824 4.4032-28.672 4.4032-43.6224 0-15.1552-2.1504-30.1056-4.4032-43.9296-1.8432-11.264 3.4816-22.7328 13.4144-28.3648l33.3824-19.0464c10.9568-6.2464 14.848-20.3776 8.704-31.4368l-53.248-94.8224c-6.2464-11.0592-20.3776-15.0528-31.4368-8.8064l-32.9728 18.432c-10.0352 5.632-22.6304 4.3008-31.3344-3.1744-25.3952-21.8112-54.272-38.8096-85.7088-50.2784-10.752-3.9936-18.0224-14.336-18.0224-25.8048V188.416c0-12.8-10.3424-23.1424-23.1424-23.1424H458.8544c-12.8 0-23.1424 10.3424-23.1424 23.1424v36.352c0 11.4688-7.2704 21.8112-18.0224 25.8048-31.4368 11.5712-60.3136 28.4672-85.7088 50.2784-8.704 7.4752-21.2992 8.8064-31.3344 3.1744l-32.9728-18.432c-11.1616-6.2464-25.1904-2.2528-31.4368 8.8064l-53.248 94.8224c-6.2464 11.0592-2.3552 25.1904 8.704 31.4368l33.3824 19.0464c9.9328 5.7344 15.36 17.1008 13.5168 28.3648-2.3552 13.824-4.4032 28.7744-4.4032 43.9296 0 14.9504 2.1504 29.7984 4.4032 43.6224 1.8432 11.264-3.4816 22.7328-13.4144 28.3648L191.488 603.136c-10.9568 6.2464-14.848 20.3776-8.704 31.4368l53.248 94.8224c6.2464 11.0592 20.3776 15.0528 31.4368 8.8064l32.9728-18.432c4.3008-2.3552 8.9088-3.4816 13.5168-3.4816z m308.3264 100.352s0.1024 0 0 0c0.1024 0 0 0 0 0z" />',A='<path d="M596.992 162.304c-60.0064 0-108.6464 48.64-108.6464 108.6464 0 23.2448 7.2704 44.7488 19.7632 62.464L333.6192 507.904c-16.7936-9.1136-36.0448-14.336-56.6272-14.336-65.4336 0-118.3744 53.0432-118.3744 118.3744s53.0432 118.3744 118.3744 118.3744c47.3088 0 88.064-27.648 107.008-67.7888l264.6016 78.848c-0.4096 3.7888-0.6144 7.68-0.6144 11.6736 0 60.0064 48.64 108.6464 108.6464 108.6464 60.0064 0 108.6464-48.64 108.6464-108.6464 0-60.0064-48.64-108.6464-108.6464-108.6464-41.6768 0-77.824 23.4496-96.0512 57.856l-265.8304-79.1552c0.3072-3.6864 0.512-7.3728 0.512-11.1616 0-30.0032-11.1616-57.4464-29.5936-78.336l171.6224-171.6224c17.1008 11.1616 37.4784 17.7152 59.4944 17.7152 60.0064 0 108.6464-48.64 108.6464-108.6464 0.2048-60.1088-48.4352-108.7488-108.4416-108.7488z m0 176.3328c-14.4384 0-27.7504-4.5056-38.7072-12.288l-16.6912-16.6912c-7.68-10.9568-12.288-24.3712-12.288-38.7072 0-37.2736 30.4128-67.6864 67.6864-67.6864s67.6864 30.4128 67.6864 67.6864-30.4128 67.6864-67.6864 67.6864zM276.992 689.3568c-42.7008 0-77.4144-34.7136-77.4144-77.4144 0-42.7008 34.7136-77.4144 77.4144-77.4144 19.1488 0 36.6592 6.9632 50.176 18.5344l8.704 8.704c11.5712 13.5168 18.5344 31.0272 18.5344 50.176 0 42.5984-34.7136 77.4144-77.4144 77.4144zM756.736 820.736c-37.2736 0-67.6864-30.4128-67.6864-67.6864s30.4128-67.6864 67.6864-67.6864 67.6864 30.4128 67.6864 67.6864-30.4128 67.6864-67.6864 67.6864z" />',k='<defs><style type="text/css"></style></defs><path d="M381.72 836.36a112.59 112.59 0 0 1-80.13-33.19L159.12 660.7a113.31 113.31 0 0 1 0-160.25L479.7 179.87a67 67 0 0 1 47.65-19.73h207.42a67.46 67.46 0 0 1 67.39 67.38V435a66.92 66.92 0 0 1-19.74 47.64L461.84 803.17a112.58 112.58 0 0 1-80.12 33.19zM344 760.75a53.32 53.32 0 0 0 75.39 0L740 440.17a7.33 7.33 0 0 0 2.17-5.22V227.52a7.4 7.4 0 0 0-7.39-7.38H527.35a7.35 7.35 0 0 0-5.22 2.16L201.55 542.88a53.29 53.29 0 0 0 0 75.39L344 760.75z" p-id="10746"></path><path d="M531.39 866.72a30 30 0 0 1-21.21-51.21l320.58-320.58a7.35 7.35 0 0 0 2.16-5.22V282.29a30 30 0 1 1 60 0v207.42a66.94 66.94 0 0 1-19.74 47.65L552.6 857.94a29.91 29.91 0 0 1-21.21 8.78z" p-id="10747"></path><path d="M625.6 336.83m-34.03 0a34.03 34.03 0 1 0 68.06 0 34.03 34.03 0 1 0-68.06 0Z" p-id="10748"></path>',L='<path d="M512 136C304 136 136 304 136 512S304 888 512 888c46.4 0 91.2-8 134.4-24 12.8-4.8 19.2-19.2 14.4-30.4-4.8-12.8-19.2-19.2-30.4-14.4-38.4 12.8-78.4 20.8-118.4 20.8-180.8 0-328-147.2-328-328S331.2 184 512 184 840 331.2 840 512c0 40-8 80-20.8 116.8-4.8 12.8 1.6 25.6 14.4 30.4 12.8 4.8 25.6-1.6 30.4-14.4 16-43.2 24-88 24-134.4C888 304 720 136 512 136z" p-id="2201"></path><path d="M512 288c-12.8 0-24 11.2-24 24v209.6l126.4 126.4c4.8 4.8 11.2 6.4 17.6 6.4s12.8-1.6 17.6-6.4c9.6-9.6 9.6-24 0-33.6l-113.6-113.6V312c0-12.8-11.2-24-24-24z" p-id="2202"></path>',R='<path d="M940.936 483.223l-16.814-16.405c-23.277-22.643-60.989-22.643-84.258 0L511.413 786.512 182.959 466.818c-23.269-22.643-60.98-22.643-84.214 0l-16.856 16.405c-23.236 22.64-23.236 59.35 0 81.954L452.326 925.77c0.033 0.04 0.067 0.11 0.11 0.152l16.847 16.372c23.234 22.64 60.946 22.64 84.223 0l16.847-16.372c0.044-0.04 0.079-0.11 0.11-0.152L940.86 565.177c23.346-22.605 23.346-59.314 0.077-81.954z" ></path>',N={arrowDown:R,add:u,close:f,addDoc:d,debug:p,format:h,upload:m,download:b,check:v,doc:g,edit:y,group:O,logo:x,note:E,question:w,refresh:T,remove:S,save:C,search:_,set:j,share:A,tag:k,time:L},I={props:["type","title"],computed:{svgHtml:function(){return N[this.type]}}};I.render=l;var M=I;function D(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("div",{ref:"input",class:"edit-div",contenteditable:"plaintext-only",textContent:i.text,onInput:t[1]||(t[1]=function(){return o.changeText.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(e){return i.isfocus=!0}),onBlur:t[3]||(t[3]=function(e){return i.isfocus=!1}),placeholder:o.placeholderStr},null,40,["textContent","placeholder"])}var P={props:["value","placeholder","maxlength"],data:function(){return{text:this.value,isfocus:!1}},watch:{value:{handler:function(e,t){this.isfocus&&this.text||(this.text=e)},immediate:!0}},computed:{placeholderStr:function(){var e=this.text,t=!e&&this.placeholder;return t?this.placeholder:""}},methods:{changeText:function(e){var t=e.target.innerText;this.maxlength;t||(this.text=t),this.$emit("input",t)}}};n("d48d");P.render=D;var U=P,F={class:"step flex-row"},H={class:"step-head"},B={class:"step-body"};function W(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("div",F,[Object(s["i"])("div",H,[Object(s["m"])(e.$slots,"step-head")]),Object(s["i"])("div",B,[Object(s["m"])(e.$slots,"default")])])}var z={props:[],data:function(){return{}},watch:{value:function(e,t){this.isfocus&&this.text||(this.text=e)}},methods:{}};n("ef11");z.render=W;var V=z,G={class:"tb"},q={class:"tb-body"},$=Object(s["i"])("div",{class:"table-scroll"},null,-1);function K(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("div",{class:"div-table",onScroll:t[1]||(t[1]=function(){return o.scroll.apply(o,arguments)})},[Object(s["i"])("div",G,[Object(s["i"])("div",{class:"tb-colgroup",style:o.headStyle},[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.columns,(function(e,t){return Object(s["j"])(),Object(s["e"])("div",{class:"cell",key:t},Object(s["o"])(e),1)})),128))],4),Object(s["i"])("div",{class:"tb-head",style:o.headStyle},[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.columns,(function(e,t){return Object(s["j"])(),Object(s["e"])("div",{class:"cell",key:t},Object(s["o"])(e),1)})),128))],4),Object(s["i"])("div",q,[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.rows,(function(e,t){return Object(s["j"])(),Object(s["e"])("div",{class:"row",key:t},[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.columns,(function(t,n){return Object(s["j"])(),Object(s["e"])("div",{class:"cell",key:n,title:e[n]},Object(s["o"])(e[n]),9,["title"])})),128))])})),128))])]),$],32)}n("99af");var Y={props:["value","placeholder","maxlength","tips"],data:function(){return{scrollTop:0,columns:[],rows:[]}},watch:{value:function(e,t){this.isfocus&&this.innerText||(this.text=e)}},computed:{headStyle:function(){var e=this.scrollTop||0;return{transform:"translateY(".concat(e,"px)")}}},created:function(){window.tb=this,this.virtualData()},methods:{scroll:function(e){this.scrollTop=e.target.scrollTop},virtualData:function(){var e=Math.floor(2+15*Math.random()),t=new Array(e).fill().map((function(e,t){return"CEll ".concat(t)})),n=Math.floor(1+20*Math.random()),r=new Array(n).fill().map((function(e,n){var r=Math.floor(t.length);return new Array(r).fill().map((function(e,t){var r=new Array(Math.floor(2+15*Math.random())).fill("a");return"r".concat(n,"c").concat(t," ").concat(r)}))}));return this.columns=t,this.rows=r,{columns:t,rows:r}}}};n("2650");Y.render=K;var X=Y,Q={class:"ide-head flex-row-between flex-row-center"},J={class:"ide-title"},Z={class:"ide-action flex-row-center"},ee={key:0,class:"aux-mini flex-row-center"},te=Object(s["h"])(" 代码检查 "),ne={class:"ide-body flex-column"},re={ref:"editor",class:"ide-textarea"};function ie(e,t,n,r,i,o){var a=Object(s["n"])("Icon");return Object(s["j"])(),Object(s["e"])("div",{class:"ide flex-column",onDrop:t[4]||(t[4]=function(){return o.preventEvent.apply(o,arguments)}),onDragover:t[5]||(t[5]=function(){return o.preventEvent.apply(o,arguments)})},[Object(s["i"])("div",Q,[Object(s["m"])(e.$slots,"title",{},(function(){return[Object(s["i"])("span",J,Object(s["o"])(n.title?n.title:"IDE"),1)]})),Object(s["m"])(e.$slots,"action",{},(function(){return[Object(s["i"])("div",Z,[e.needJsHint?(Object(s["j"])(),Object(s["e"])("label",ee,[Object(s["v"])(Object(s["i"])("input",{type:"checkbox",style:{opacity:".7","margin-bottom":"-2px","margin-right":"2px"},onChange:t[1]||(t[1]=function(){return e.jsHints.apply(e,arguments)}),"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.hintJs=e})},null,544),[[s["p"],i.hintJs]]),te])):Object(s["f"])("",!0),Object(s["i"])("span",{title:"格式化",onClick:t[3]||(t[3]=function(){return e.format.apply(e,arguments)}),class:"flex-row-center btn-format click"},[Object(s["i"])(a,{class:"icon-format",type:"format"})])])]}))]),Object(s["i"])("div",ne,[Object(s["i"])("textarea",re,null,512)])],32)}n("b0c0"),n("ac1f"),n("466d"),n("5319");var oe=n("366b"),ae=n.n(oe),se=(n("c975"),n("baa5"),n("fb6a"),n("1276"),function(e){e.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,t){return/^[;{}]$/.test(t)}}),e.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,t,n,r){return this.jsonMode?/^[\[,{]$/.test(t)||/^}/.test(n):(";"!=t||!r.lexical||")"!=r.lexical.type)&&(/^[;{}]$/.test(t)&&!/^;/.test(n))}}),e.extendMode("xml",{commentStart:"\x3c!--",commentEnd:"--\x3e",newlineAfterToken:function(e,t,n){return"tag"==e&&/>$/.test(t)||/^</.test(n)}}),e.defineExtension("commentRange",(function(t,n,r){var i=this,o=e.innerMode(i.getMode(),i.getTokenAt(n).state).mode;i.operation((function(){if(t)i.replaceRange(o.commentEnd,r),i.replaceRange(o.commentStart,n),n.line==r.line&&n.ch==r.ch&&i.setCursor(n.line,n.ch+o.commentStart.length);else{var e=i.getRange(n,r),a=e.indexOf(o.commentStart),s=e.lastIndexOf(o.commentEnd);a>-1&&s>-1&&s>a&&(e=e.substr(0,a)+e.substring(a+o.commentStart.length,s)+e.substr(s+o.commentEnd.length)),i.replaceRange(e,n,r)}}))})),e.defineExtension("autoIndentRange",(function(e,t){var n=this;this.operation((function(){for(var r=e.line;r<=t.line;r++)n.indentLine(r,"smart")}))})),e.defineExtension("autoFormatRange",(function(t,n){var r=this,i=r.getMode(),o=r.getRange(t,n).split("\n"),a=e.copyState(i,r.getTokenAt(t).state),s=r.getOption("tabSize"),c="",l=0,u=0==t.ch;function f(){c+="\n",u=!0,++l}for(var d=0;d<o.length;++d){var p=new e.StringStream(o[d],s);while(!p.eol()){var h=e.innerMode(i,a),m=i.token(p,a),v=p.current();p.start=p.pos,u&&!/\S/.test(v)||(c+=v,u=!1),!u&&h.mode.newlineAfterToken&&h.mode.newlineAfterToken(m,v,p.string.slice(p.pos)||o[d+1]||"",h.state)&&f()}!p.pos&&i.blankLine&&i.blankLine(a),u||f()}r.operation((function(){r.replaceRange(c,t,n);for(var e=t.line+1,i=t.line+l;e<=i;++e)r.indentLine(e,"smart");r.setSelection(t,r.getCursor(!1))}))}))}),ce=(n("ce59"),n("b743"),n("56cb"),n("2d9d"),n("f7a0"),n("1f1d"),n("4083")),le=(n("638c"),n("cfa5"),n("85d3")),ue=n.n(le);se(ae.a);var fe={props:["mode","value","readOnly","option"],data:function(){return{editor:null,optionDefault:{mode:"javascript",flattenSpans:!1,readOnly:!1,lineNumbers:!0,lineWrapping:!1,extraKeys:{"Ctrl-S":function(e){e.save()},"Alt-F":this.format,"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],theme:"default",styleActiveLine:!0,matchBrackets:!0,autoCloseTags:!0},widgets:[]}},computed:{needJsHint:function(){var e=this.editor?this.editor.getMode():{};return"javascript"==e.name&&!e.jsonMode}},watch:{value:{handler:function(e,t){this.setValue()},immediate:!0}},mounted:function(){this.initIDE(),this.editor.on("beforeChange",this.editorBeforeChange),this.editor.on("cursorActivity",this.editorCursorActivity),this.setValue()},methods:{formatSQL:function(){var e=this.editor;e.setValue(ue.a.format(e.getValue()))},format:function(){var e=this.editor;if("sql"==e.getMode().name)return this.formatSQL();var t=e.lineCount(),n={line:0,ch:0},r={line:t},i=e.getCursor(!0),o=e.getCursor(!1);e.setSelection(o,o),e.autoFormatRange(n,r),e.setSelection(i,o)},setValue:function(){var e=this.value||"";this.editor&&this.editor.setValue(e)},editorBeforeChange:function(e,t){var n=e.getSelection();(n&&'"'==t.text[0]||"'"==t.text[0])&&(t.text[0]=t.text[0]+n+t.text[0]),n&&"("==t.text[0]&&(t.text[0]="("+n+")"),n&&"["==t.text[0]&&(t.text[0]="["+n+"]"),n&&"{"==t.text[0]&&(t.text[0]="{"+n+"}"),n&&"<"==t.text[0]&&(t.text[0]="<"+n+">")},editorCursorActivity:function(e,t){var n=e.getMode().name;if("markdown"!=n){var r=e.getValue()+"";r=r.replace(/[a-z]+[\-|\']+[a-z]+/gi,"").match(/([a-z]+)/gi);var i={};for(var o in r)i[r[o]]=!0;e.showHint({hint:ae.a.hint[n],completeSingle:!1}),this.needJsHint&&this.hintJs&&this.jsHints()}},jsHints:function(){var e=this.editor;if(e){for(var t=this.widgets,n=0;n<t.length;++n)e.removeLineWidget(t[n]);if(this.needJsHint&&this.hintJs){e.operation((function(){t.length=0;var n={};Object(ce["JSHINT"])(e.getValue(),n);for(var r=0;r<ce["JSHINT"].errors.length;++r){var i=ce["JSHINT"].errors[r];if(i){var o=document.createElement("div"),a=o.appendChild(document.createElement("span"));a.innerHTML="!",a.className="lint-error-icon",o.appendChild(document.createTextNode(i.reason)),o.className="lint-error",t.push(e.addLineWidget(i.line-1,o,{coverGutter:!1,noHScroll:!0}))}}}));var r=e.getScrollInfo(),i=e.charCoords({line:e.getCursor().line+1,ch:0},"local").top;r.top+r.clientHeight<i&&e.scrollTo(null,i-r.clientHeight+3)}}},initIDE:function(){var e=Object.assign({},this.optionDefault,this.option);this.mode&&(e.mode=this.mode),this.editor=ae.a.fromTextArea(this.$refs["editor"],e),window.IDE=this}}},de={},pe={props:["title"],components:de,mixins:[fe],data:function(){return{hintJs:!0}},computed:{},mounted:function(){},methods:{preventEvent:function(e){e.preventDefault(),e.stopPropagation()}}};n("1e78");pe.render=ie;var he=pe,me={class:"mask-view abs"},ve=Object(s["i"])("span",null,"mask view",-1);function ge(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("div",me,[Object(s["m"])(e.$slots,"default",{},(function(){return[ve]}))])}var be={props:[],data:function(){return{}},watch:{value:function(e,t){}},render:function(e){return console.log(this.$slots.default),this.$slots.default},methods:{}};n("53b7");be.render=ge;var ye=be,Oe={viewBox:"0 0 515.5 360.9","xml:space":"preserve"},xe={id:"Layer_1"},Ee=Object(s["i"])("path",{class:"st0",d:"M49.5,190.9c-7.7-51.5-25-56-38.3-82c-12.1-23.6-21.8-62.3,12.3-90c53-43,118,1,118,1s103,59,121,62\r\n\t\t\ts62,33,117-3s102-33,117-6s-19,105-27,121s4,66,17,86s54,82-34,80s-352,1-352,1s-94.8-1.8-78-94C36.5,189.9,52.5,210.9,49.5,190.9\r\n\t\t\tz"},null,-1),we=Object(s["i"])("rect",{x:"83.4",y:"187.7",class:"st1",width:"119.5",height:"78.4",rx:"3"},null,-1),Te=Object(s["i"])("circle",{class:"st1",cx:"50",cy:"188.4",r:"13.5"},null,-1),Se=Object(s["i"])("circle",{class:"st1",cx:"52",cy:"157.4",r:"7.5"},null,-1),Ce=Object(s["i"])("circle",{class:"st1",cx:"15",cy:"62.4",r:"7.5"},null,-1),_e=Object(s["i"])("circle",{class:"st2",cx:"140",cy:"297.4",r:"35.5"},null,-1),je=Object(s["i"])("circle",{class:"st2",cx:"374.5",cy:"325.9",r:"24"},null,-1),Ae=Object(s["i"])("circle",{class:"st2",cx:"466.5",cy:"201.9",r:"13"},null,-1),ke=Object(s["i"])("circle",{class:"st2",cx:"369.5",cy:"84.9",r:"26"},null,-1),Le=Object(s["i"])("circle",{class:"st2",cx:"131",cy:"15.4",r:"12.5"},null,-1),Re=Object(s["i"])("circle",{class:"st2",cx:"91",cy:"264.4",r:"12.5"},null,-1),Ne=Object(s["i"])("circle",{class:"st1",cx:"494",cy:"119.4",r:"12.5"},null,-1),Ie=Object(s["i"])("circle",{class:"st1",cx:"474",cy:"331.4",r:"13.5"},null,-1),Me=Object(s["i"])("circle",{class:"st1",cx:"504",cy:"338.4",r:"7.5"},null,-1),De=Object(s["h"])(),Pe=Object(s["i"])("foreignObject",{width:"120",height:"50"},[Object(s["i"])("p",{class:"error",style:{"font-size":"12px",margin:"0"}},"一段需要word wrap的文字。")],-1),Ue=Object(s["i"])("g",{id:"Layer_2"},[Object(s["i"])("g",{id:"Computer"},[Object(s["i"])("title",null,"Computer"),Object(s["i"])("path",{class:"st1",d:"M288.2,283.1h118.2c0,0,4.4-0.2,4.4-5.4v-10.2H283.5v12.3C284.2,281.9,286,283.2,288.2,283.1"}),Object(s["i"])("path",{class:"st1",d:"M283.5,190.8l-0.1,80.7l127.3-1.2v-81.9c0,0,0.8-4.7-4.2-4.7H288.3C288.3,183.8,283,183.8,283.5,190.8"}),Object(s["i"])("polygon",{class:"st1",points:"337.1,304.8 337.1,282.3 355.7,283.1 355.7,302.8 \t\t"}),Object(s["i"])("polygon",{class:"st1",points:"307.5,302.5 384.9,302.5 385,306.4 307.5,306.4 \t\t"}),Object(s["i"])("path",{class:"st3",d:"M346,273.1c2.1,0,3.7,1.6,3.7,3.7s-1.6,3.7-3.7,3.7s-3.7-1.6-3.7-3.7C342.3,274.7,344,273.1,346,273.1\r\n\t\t\tL346,273.1"}),Object(s["i"])("rect",{x:"287.4",y:"187.7",class:"st0",width:"119.5",height:"78.4"}),Object(s["i"])("path",{class:"st4",d:"M293.4,191.7c1,0,1.9,0.9,1.9,1.9c0,1-0.9,1.9-1.9,1.9s-1.9-0.9-1.9-1.9C291.5,192.6,292.4,191.7,293.4,191.7\r\n\t\t\tL293.4,191.7"}),Object(s["i"])("path",{class:"st5",d:"M299.8,191.7c1,0,1.9,0.9,1.9,1.9c0,1-0.9,1.9-1.9,1.9s-1.9-0.9-1.9-1.9C297.9,192.6,298.7,191.7,299.8,191.7\r\n\t\t\tL299.8,191.7"}),Object(s["i"])("path",{class:"st6",d:"M306.4,191.7c1,0,1.9,0.9,1.9,1.9c0,1-0.9,1.9-1.9,1.9s-1.9-0.9-1.9-1.9C304.6,192.6,305.4,191.7,306.4,191.7\r\n\t\t\tL306.4,191.7"}),Object(s["i"])("linearGradient",{id:"SVGID_1_",gradientUnits:"userSpaceOnUse",x1:"1315.1656",y1:"1171.5818",x2:"1342.3239",y2:"1171.5818",gradientTransform:"matrix(1 0 0 1 -1009.9 -968)"},[Object(s["i"])("stop",{offset:"0",style:{"stop-color":"#F71D69"}}),Object(s["i"])("stop",{offset:"1",style:{"stop-color":"#F8C648"}})]),Object(s["i"])("path",{class:"st7",d:"M332.4,205.4c-0.1,1-0.9,1.8-1.9,1.7h-22.9c-1.2,0-2.3-0.8-2.3-1.7v-3.5c0-0.9,1.1-1.8,2.3-1.8h22.8\r\n\t\t\tc1-0.1,1.9,0.7,2,1.7v0.1V205.4z"}),Object(s["i"])("linearGradient",{id:"SVGID_2_",gradientUnits:"userSpaceOnUse",x1:"1315.1656",y1:"1187.8767",x2:"1397.4163",y2:"1187.8767",gradientTransform:"matrix(1 0 0 1 -1009.9 -968)"},[Object(s["i"])("stop",{offset:"0",style:{"stop-color":"#93FD94"}}),Object(s["i"])("stop",{offset:"1",style:{"stop-color":"#21C4C0"}})]),Object(s["i"])("path",{class:"st8",d:"M387.5,228.5c-0.1,1.1-1,1.9-2.1,1.9l0,0h-77.8c-1.2,0-2.3-0.9-2.3-1.9v-17.2c0-1,1.2-1.9,2.3-1.9h77.8\r\n\t\t\tc1.1-0.1,2,0.8,2.1,1.9l0,0l0,0V228.5z"}),Object(s["i"])("linearGradient",{id:"SVGID_3_",gradientUnits:"userSpaceOnUse",x1:"1315.1656",y1:"1206.4968",x2:"1340.772",y2:"1206.4968",gradientTransform:"matrix(1 0 0 1 -1009.9 -968)"},[Object(s["i"])("stop",{offset:"0",style:{"stop-color":"#93FD94"}}),Object(s["i"])("stop",{offset:"1",style:{"stop-color":"#21C4C0"}})]),Object(s["i"])("path",{class:"st9",d:"M330.9,243.2c0,1-0.9,1.9-1.9,1.9l0,0h-21.4c-1.2,0-2.3-0.9-2.3-1.9v-9.5c0-1,1.2-1.9,2.3-1.9h21.3\r\n\t\t\tc1-0.1,1.9,0.7,2,1.8l0,0v0.1V243.2z"}),Object(s["i"])("linearGradient",{id:"SVGID_4_",gradientUnits:"userSpaceOnUse",x1:"1343.0997",y1:"1206.4968",x2:"1368.7061",y2:"1206.4968",gradientTransform:"matrix(1 0 0 1 -1009.9 -968)"},[Object(s["i"])("stop",{offset:"0",style:{"stop-color":"#93FD94"}}),Object(s["i"])("stop",{offset:"1",style:{"stop-color":"#21C4C0"}})]),Object(s["i"])("path",{class:"st10",d:"M358.8,243.2c0,1-0.9,1.9-1.9,1.9l0,0h-21.4c-1.2,0-2.3-0.9-2.3-1.9v-9.5c0-1,1.2-1.9,2.3-1.9h21.3\r\n\t\t\tc1-0.1,1.9,0.7,2,1.8v0.1V243.2z"}),Object(s["i"])("linearGradient",{id:"SVGID_5_",gradientUnits:"userSpaceOnUse",x1:"1371.8099",y1:"1206.4993",x2:"1397.4163",y2:"1206.4993",gradientTransform:"matrix(1 0 0 1 -1009.9 -968)"},[Object(s["i"])("stop",{offset:"0",style:{"stop-color":"#93FD94"}}),Object(s["i"])("stop",{offset:"1",style:{"stop-color":"#21C4C0"}})]),Object(s["i"])("path",{class:"st11",d:"M387.5,243.2c-0.1,1.1-1,1.9-2.1,1.9h-21.3c-1.2,0.1-2.1-0.8-2.3-1.9v-9.5c0.1-1.2,1.1-1.9,2.3-1.9h21.3\r\n\t\t\tc1.1-0.1,2.1,0.8,2.2,1.9l0,0l0,0L387.5,243.2L387.5,243.2z"}),Object(s["i"])("path",{class:"st12",d:"M358.8,248.6c-0.2,0.4-0.5,0.6-0.9,0.7c-0.1,0-0.1,0-0.2-0.3h-23.4c-0.5,0.3-1.2,0-1.2-0.4v-0.3\r\n\t\t\tc0-0.4,0.7-0.8,1.2-0.9h23.4c0.4,0.1,0.6,0.4,0.7,0.7c0,0.1,0,0.1,0.2,0.2L358.8,248.6L358.8,248.6z"}),Object(s["i"])("path",{class:"st12",d:"M358.8,251.6c-0.2,0.4-0.5,0.7-0.9,0.8c0,0-0.1,0-0.1-0.3h-23.5c-0.5,0.3-1.2,0-1.2-0.5v-0.3\r\n\t\t\tc0-0.4,0.7-0.7,1.2-0.8h23.4c0.4,0.1,0.8,0.4,0.9,0.8L358.8,251.6L358.8,251.6z"}),Object(s["i"])("path",{class:"st12",d:"M358.8,254.7c-0.2,0.5-0.5,0.8-0.9,0.9c0-0.2,0-0.2,0-0.4h-23.5c-0.4,0.2-0.9,0.2-1.1-0.2\r\n\t\t\tc-0.1-0.1-0.1-0.2-0.1-0.2v-0.3c0-0.4,0.7-0.6,1.2-0.8h23.4c0.4,0.1,0.8,0.4,0.9,0.8L358.8,254.7z"}),Object(s["i"])("path",{class:"st12",d:"M358.8,257.7c-0.2,0.5-0.5,0.9-0.9,1.3h-23.5c-0.5-0.4-1.2-0.9-1.2-1.3v-0.3c0-0.4,0.7-0.9,1.2-0.7h23.4\r\n\t\t\tc0.3-0.1,0.6,0.2,0.7,0.5c0,0.1,0,0.2,0,0.2c0,0,0,0,0.2,0.1L358.8,257.7L358.8,257.7z"}),Object(s["i"])("path",{class:"st12",d:"M345.8,260.8c0,0.4-0.2,0.5-0.7,0.5h-10.8c-0.5,0-1.1-0.2-1.1-0.5v-0.3c0-0.4,0.6-0.7,1.1-0.7h10.8\r\n\t\t\tc0.4,0,0.7,0.3,0.7,0.7l0,0V260.8z"}),Object(s["i"])("path",{class:"st12",d:"M387.5,248.6c-0.5,0.4-0.4,0.7-0.9,0.4h-23.4c-0.4,0.3-0.8,0.1-0.8-0.3c0,0,0,0,0.2-0.1v-0.3\r\n\t\t\tc-0.2-0.4,0.1-0.8,0.5-0.9h23.4c0.5,0.2,0.4,0.5,0.9,0.9V248.6z"}),Object(s["i"])("path",{class:"st12",d:"M387.5,251.6c-0.5,0.4-0.4,0.8-0.9,0.5h-23.4c-0.5,0.3-0.8,0-0.5-0.5v-0.3c-0.2-0.4,0.1-0.7,0.5-0.8h23.4\r\n\t\t\tc0.5,0.2,0.4,0.4,0.9,0.8V251.6z"}),Object(s["i"])("path",{class:"st12",d:"M387.5,254.7c-0.5,0.4-0.4,0.9-0.9,0.5h-23.4c-0.5,0.3-0.8,0-0.5-0.5v-0.3c-0.2-0.4,0.1-0.6,0.5-0.8h23.4\r\n\t\t\tc0.5,0.2,0.4,0.4,0.9,0.8V254.7z"}),Object(s["i"])("path",{class:"st12",d:"M387.5,257.7c-0.5,0.4-0.4,0.9-0.9,1.3h-23.4c-0.5-0.5-0.8-0.9-0.5-1.3v-0.3c-0.2-0.2-0.2-0.5,0-0.6\r\n\t\t\tc0.2-0.1,0.3-0.2,0.5-0.1h23.5c0.5-0.2,0.4,0.3,0.9,0.7V257.7z"}),Object(s["i"])("path",{class:"st12",d:"M374.6,260.8c0,0.4,0,0.5-0.4,0.5h-10.9c-0.5,0-0.7-0.2-0.7-0.5v-0.3c0-0.4,0.3-0.7,0.7-0.7l0,0h10.8\r\n\t\t\tc0.5,0,0.4,0.3,0.4,0.7L374.6,260.8z"}),Object(s["i"])("path",{class:"st12",d:"M330.1,248.6c0.3,0.4,0.2,0.7-0.3,0.4h-23.5c-0.3,0.2-0.7,0.2-0.9-0.1c-0.1-0.1-0.1-0.2-0.2-0.3v-0.3\r\n\t\t\tc0.2-0.5,0.5-0.8,1-0.9h23.4c0.5,0.2,0.6,0.5,0.3,0.9L330.1,248.6L330.1,248.6z"}),Object(s["i"])("path",{class:"st12",d:"M330.1,251.6c0.3,0.4,0.2,0.8-0.3,0.5h-23.5c-0.5,0.4-0.9,0-1-0.5v-0.3c0.1-0.4,0.5-0.7,1-0.8h23.4\r\n\t\t\tc0.5,0.2,0.6,0.4,0.3,0.8L330.1,251.6L330.1,251.6z"}),Object(s["i"])("path",{class:"st12",d:"M330.1,254.7c0.3,0.4,0.2,0.9-0.3,0.5h-23.5c-0.5,0.4-0.9,0-1-0.5v-0.3c0.1-0.4,0.5-0.6,1-0.8h23.4\r\n\t\t\tc0.5,0.2,0.6,0.4,0.3,0.8L330.1,254.7L330.1,254.7z"}),Object(s["i"])("path",{class:"st12",d:"M323.1,256.7h6.7c0.5-0.2,0.6,0.3,0.3,0.7v0.3c0.3,0.4,0.2,0.9-0.3,1.3h-23.5c-0.5-0.3-0.8-0.8-1-1.3v-0.3\r\n\t\t\tc0.1-0.5,0.5-0.8,1-0.7l0,0H323.1"}),Object(s["i"])("path",{class:"st12",d:"M318.5,260.8c0,0.4-0.2,0.5-0.7,0.5h-11.6c-0.5,0-0.9-0.2-0.9-0.5v-0.3c0.1-0.4,0.5-0.7,0.9-0.7h11.6\r\n\t\t\tc0.4,0,0.7,0.3,0.7,0.6l0,0c0,0,0,0,0,0.1V260.8z"})])],-1);function Fe(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("svg",Oe,[Object(s["i"])("g",xe,[Ee,(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.g1,(function(e,t){return Object(s["j"])(),Object(s["e"])("circle",{class:"st1",cx:"83.5",cy:"163.9",r:"20",key:t})})),128)),we,Te,Se,Ce,_e,je,Ae,ke,Le,Re,Ne,Ie,Me]),De,Pe,Ue])}var He={data:function(){return{g1:[{}]}}};n("ad78");He.render=Fe;var Be=He,We={Icon:M,SVGBack:Be,DivEdit:U,Step:V,DivTable:X,IDE:he,MaskView:ye},ze={components:We,install:function(e){for(var t in We)e.component(t,We[t])}},Ve=(n("4d63"),n("25f0"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=function(e){return e<10?"0"+e:e},n=function(){var e=new Date,n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),c=e.getMilliseconds();return"".concat(n).concat(t(r)).concat(t(i)).concat(t(o)).concat(t(a)).concat(t(s)).concat(c)};return"".concat(e,"_").concat(Math.round(1e3*Math.random()),"_").concat(n())}),Ge=function(e,t){var n=e?new Date(e):new Date;t=t||"yyyy-MM-dd hh:mm:ss";var r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[i]:("00"+r[i]).substr((""+r[i]).length)));return t},qe=function(e){e.preventDefault(),e.stopPropagation()},$e=function(e){console.log("%c %s %O","color:red","[连接数据库失败]",e)},Ke=(n("d3b7"),n("5530")),Ye=n("bc3a"),Xe=n.n(Ye),Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mydb",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n={_db:null,dbname:"mydb",version:1,msg:"",init:function(){console.log("初始化对象仓库");var e=this._db;if(!e)return console.error("[没有indexedDB数据库实例]");e.createObjectStore("cache",{keyPath:"id",unique:!0});var t=e.createObjectStore("doc",{keyPath:"id",autoIncrement:!0});t.createIndex("name","name",{unique:!0})},dbOpen:function(){var e=this;if(!window.indexedDB)return window.alert("当前浏览器不支持IndexedDB数据库");var t=this.dbname,n=this.version,r=indexedDB.open(t,n);return r.addEventListener("upgradeneeded",(function(t){e._db=t.target.result,e.init()})),r},store:function(e,t,n){var r=this.dbOpen();return r&&(r.addEventListener("success",(function(r){var i=r.target.result,o=i.transaction(e,n||"readwrite").objectStore(e);t&&t(o)})),r.addEventListener("error",(function(e){console.log("%c %s %O","color:red","[连接数据库失败]",e)}))),r},put:function(e,t,n){return this.store(e,(function(e){var r=e.put(t);r.addEventListener("success",n),r.addEventListener("error",n)}))},get:function(e,t,n){return this.store(e,(function(e){var r=e.get(t);r.addEventListener("success",n),r.addEventListener("error",n)}))},find:function(e,t){return this.store(e,(function(e){var n=e.openCursor(null,"prev");n.addEventListener("success",t),n.addEventListener("error",t)}))},del:function(e,t,n){return this.store(e,(function(e){var r=e.delete(t);r.addEventListener("success",n),r.addEventListener("error",n)}))}};return n.dbname=e,n.version=t,n},Je=(n("7db0"),{name:"保存文档",url:"doc/save",method:"post",param:"",paramSet:function(e){return{data:e,url:this.url,method:this.method}},result:{code:1,data:{},message:"ok"},resultMock:function(e){var t=this;return e=Object.assign({},e),new Promise((function(n){window.db.put("doc",e,(function(r){console.log("保存文档",e,r.target);var i=r.target||{},o=i.error;i.result&&(e.id=i.result);var a=Object.assign(t.result,{code:o?0:1,message:o&&"ConstraintError"==o.name?"文档名称重复":o,data:e});n(a)}))}))}}),Ze={name:"删除文档",url:"doc/remove",method:"get",paramDefault:"",paramSet:function(e){return{param:e,url:this.url,method:this.method}},result:{code:1,data:{},message:"ok"},resultMock:function(e){var t=this;return new Promise((function(n){window.db.del("doc",e,(function(e){var r=e.target.result;console.log("删除文档",r);var i=Object.assign(t.result,{data:r});n(i)}))}))}},et={name:"查询文档",url:"doc/get",method:"get",paramDefault:"",paramSet:function(e){return{param:e,url:this.url,method:this.method}},result:{code:1,data:{},message:"ok"},resultMock:function(e){var t=this;return new Promise((function(n){window.db.get("doc",e,(function(e){var r=e.target.result;console.log("查询文档",r);var i=Object.assign(t.result,{data:r});n(i)}))}))}},tt={name:"查询文档列表",url:"doc/getList",method:"post",paramDefault:"",paramSet:function(e){return{params:e,url:this.url,method:this.method}},result:{code:1,data:[],message:"ok"},resultMock:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n){var r=Object.assign({},e.result),i=[],o=t.keyword||"";window.db.find("doc",(function(e){var a=e.target.result;if(a){var s=a.value||{};console.log("[list][value]",s,t);var c=!0;o&&o.indexOf(t.name)<0&&(c=!1),c&&i.push(s),a.continue()}else r=Object.assign(r,{data:i}),n(r)}))}))}},nt={name:"缓存文档",url:"doc/cache",method:"get",paramDefault:"",paramSet:function(e){return e=e||this.param,{params:e,url:this.url,method:this.method}},result:{code:0,data:null,message:"缓存文档失败"},resultMock:function(e){var t=this;return new Promise((function(n){e||n(t.result);var r={id:0,apiDoc:e};window.db.put("cache",r,(function(e){var r=e.target.result;console.log("[getCache]",r);var i=Object.assign(t.result,{data:r});n(i)}))}))}},rt={name:"查询缓存文档",url:"doc/getCache",method:"get",paramDefault:"",paramSet:function(e){return e=e||this.param,{params:e,url:this.url,method:this.method}},result:{code:0,data:null,message:"没有缓存文档"},resultMock:function(){var e=this;return new Promise((function(t){window.db.get("cache",0,(function(n){var r=n.target.result;console.log("[getCache]",r);var i=e.result;r&&r.apiDoc&&(i={code:1,data:r.apiDoc,message:"ok"}),t(i)}))}))}},it=Qe("S-API",1);window.db=it;var ot={doc:i};function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e){for(var n=t.split("."),r=e[n[0]],i=1;i<n.length;i++){if(!r)break;r=r[n[i]]}return r}}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return at(ot,e)}function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=at(ot,e);return n&&n.resultMock?n.resultMock(t):Promise.resolve({code:0,message:"接口 [".concat(e,"] 模拟数据不存在")})}var lt=ot,ut=n("aa6a");function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(Ke["a"])(Object(Ke["a"])({},e),t);console.log("%c %s %O","color:blue","[ajax请求][axiosOption]",n,e,t);var r=Xe()(n).then((function(e){return e.data})).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.warn("[ajax 请求异常]:",e);var t="接口请求异常",n=(e.response||{}).status;switch(n){case 400:t="接口请求参数异常";break;case 401:t="接口权限不足";break;case 403:t="接口请求被服务器拒绝";break;case 404:t="接口地址不存在";break;case 500:t="接口服务器异常";break;default:t=e.message||"接口请求异常"}return{code:0,message:t,error:e}}));return r}function dt(e,t){if(console.log("项目环境判断",ut["dev"]),ut["dev"]){document.cookie="apiUrl="+ut["apiUrl"];var n={headers:{apiUrl:ut["apiUrl"]}};return ut["dev"]?(n.dev=ut["dev"],n.mock=ct(e,t),null==Xe.a.mockInterceptor&&(Xe.a.mockInterceptor=Xe.a.interceptors.response.use(null,(function(e){var t=(e||{}).config||{};return console.warn("[使用模拟数据(axios 拦截接口响应)]",t,e),{data:t.mock}}))),null==Xe.a.mockInterceptorRequest&&(Xe.a.mockInterceptorRequest=Xe.a.interceptors.request.use((function(e){return e&&"mockOnly"==e.dev?(console.warn("[直接使用模拟数据(axios 拦截接口请求)]",e),Promise.reject(e)):e}))),n):n}}function pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=st(e,t),r=n&&n.paramSet?n.paramSet(t):n;return r=Object.assign(r,dt(e,t)),r}function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pt(e,t),i=r?ft(r,n):Promise.resolve({code:0,message:"接口 [".concat(e,"] 不存在")});return i}window.axios=Xe.a,Xe.a.defaults.baseURL="api",Xe.a.defaults.timeout=200;var mt={install:function(e,t){console.log(e,t),e.use(ze),e.config.globalProperties.$util=r,e.config.globalProperties._api=a,e.config.globalProperties.$ajax=ft,e.config.globalProperties.$api=ht}},vt=Object(s["h"])(" :style=\"apiDoc ? 'transform: scale(.9);opacity: .8;' : 'transform: scale(1);opacity:1;'\" "),gt={class:"flex-row-center"},bt=Object(s["h"])("导入 "),yt=Object(s["h"])("导出 ");function Ot(e,t,n,r,i,o){var a=Object(s["n"])("DocManage"),c=Object(s["n"])("Icon"),l=Object(s["n"])("ApiDoc"),u=Object(s["n"])("mask-view"),f=Object(s["n"])("ApiImport"),d=Object(s["n"])("ApiExport");return Object(s["j"])(),Object(s["e"])("div",{id:"app",class:"app abs flex-column",onDrop:t[7]||(t[7]=function(){var t;return(t=e.$util).preventEvent.apply(t,arguments)}),onDragover:t[8]||(t[8]=function(){var t;return(t=e.$util).preventEvent.apply(t,arguments)})},[Object(s["i"])(a,{ref:"docManage",class:"abs","onSet-doc":e.setApiDoc,onImportDoc:t[1]||(t[1]=function(t){return e.visibleApiImport=!0})},{default:Object(s["u"])((function(){return[vt]})),_:1},8,["onSet-doc"]),Object(s["i"])(u,null,{default:Object(s["u"])((function(){return[Object(s["i"])(l,{class:["abs ",e.apiDocAnim.dur],style:e.apiDocAnim.end?e.apiDocAnim.end:e.apiDocAnim.start,ref:"apiDoc",apiDoc:e.apiDoc,onClose:t[4]||(t[4]=function(t){return e.setApiDoc()}),onSetDesign:e.setApiDoc},{action:Object(s["u"])((function(){return[Object(s["i"])("span",gt,[Object(s["i"])("span",{class:"btn-text",onClick:t[2]||(t[2]=function(t){return e.visibleApiImport=!0})},[Object(s["i"])(c,{type:"download"}),bt]),Object(s["i"])("span",{class:"btn-text",onClick:t[3]||(t[3]=function(t){return e.visibleApiExport=!0})},[Object(s["i"])(c,{type:"upload"}),yt])])]})),_:1},8,["class","style","apiDoc","onSetDesign"])]})),_:1}),Object(s["i"])(s["b"],{name:"anim-loading"},{default:Object(s["u"])((function(){return[e.visibleApiImport?(Object(s["j"])(),Object(s["e"])(f,{key:0,onOk:e.apiImport,onClose:t[5]||(t[5]=function(){return e.visibleApiImport=!1})},null,8,["onOk"])):Object(s["f"])("",!0)]})),_:1}),Object(s["i"])(s["b"],{name:"anim-loading"},{default:Object(s["u"])((function(){return[e.visibleApiExport?(Object(s["j"])(),Object(s["e"])(d,{key:0,onOk:e.apiExport,onClose:t[6]||(t[6]=function(){return e.visibleApiExport=!1})},null,8,["onOk"])):Object(s["f"])("",!0)]})),_:1})],32)}n("3ca3"),n("841c"),n("ddb0"),n("2b3d");var xt={class:"docs flex-column view-page-max"},Et={class:"nav-head flex-row-center "},wt=Object(s["i"])("div",{class:" blod"}," Simple-API ",-1),Tt={class:"docs-base "},St=Object(s["i"])("div",{class:"doc-card-back abs doc-card-add"},null,-1),Ct={class:"btn-import flex-row-center"},_t=Object(s["h"])("新增文档 "),jt=Object(s["i"])("div",{class:"doc-card-back abs doc-card-import"},null,-1),At={class:"btn-import flex-row-center"},kt=Object(s["h"])("导入文档 "),Lt=Object(s["i"])("div",{class:"doc-card-back abs doc-card-cache"},null,-1),Rt={key:0,class:"abs doc-card-view flex-column"},Nt={class:"doc-card-head flex-row-center flex-row-between"},It={class:"doc-name1 text-nowrap margin-right-10px"},Mt={class:"doc-card-body aux"},Dt={class:"flex-row-center"},Pt={class:"flex-row-center"},Ut={class:"doc-card-footer aux-mini flex-row-center"},Ft=Object(s["i"])("div",{class:"doc-card-back abs doc-card-self"},null,-1),Ht=Object(s["i"])("div",{class:"doc-card-back abs"},null,-1),Bt={class:"doc-card-head flex-row-center flex-row-between"},Wt={class:"doc-name1 text-nowrap margin-right-10px"},zt={class:"doc-card-body aux"},Vt={class:"flex-row-center"},Gt={class:"flex-row-center"},qt={class:"doc-card-footer aux-mini flex-row-center"},$t={key:0,class:"abs loading flex-column",size:"large",fix:""},Kt={class:"flex-center"},Yt=Object(s["h"])("Loading...");function Xt(e,t,n,r,i,o){var a=Object(s["n"])("Icon"),c=Object(s["n"])("Nav");return Object(s["j"])(),Object(s["e"])("div",xt,[Object(s["i"])("div",Et,[Object(s["i"])(a,{class:"logo icon icon-large margin-right-10px",type:"logo"}),wt]),Object(s["i"])("div",Tt,[Object(s["i"])(s["b"],{name:"list-anim",appear:""},{default:Object(s["u"])((function(){return[Object(s["i"])("div",{class:"doc-card ",onClick:t[1]||(t[1]=function(){return o.add.apply(o,arguments)})},[St,Object(s["i"])("label",Ct,[Object(s["i"])(a,{class:"icon",type:"download"}),_t])])]})),_:1}),Object(s["i"])(s["b"],{name:"list-anim",appear:""},{default:Object(s["u"])((function(){return[Object(s["i"])("div",{class:"doc-card ",onClick:t[2]||(t[2]=function(t){return e.$emit("import-doc",{})})},[jt,Object(s["i"])("label",At,[Object(s["i"])(a,{class:"icon",type:"download"}),kt])])]})),_:1}),Object(s["i"])(s["b"],{name:"list-anim",appear:""},{default:Object(s["u"])((function(){return[Object(s["i"])("div",{class:["doc-card ",i.docCache?"":"doc-card-ghost"],title:i.docCache?i.docCache.name:"没有暂存文档",onClick:t[3]||(t[3]=function(t){return i.docCache&&e.$emit("set-doc",i.docCache)})},[Lt,i.docCache?(Object(s["j"])(),Object(s["e"])("div",Rt,[Object(s["i"])("div",Nt,[Object(s["i"])("div",It,Object(s["o"])(i.docCache.name),1)]),Object(s["i"])("div",Mt,[Object(s["i"])("div",Dt,"版本:"+Object(s["o"])(i.docCache.version),1),Object(s["i"])("div",Pt,"作者: "+Object(s["o"])(i.docCache.author||""),1)]),Object(s["i"])("div",Ut,[Object(s["i"])(a,{class:" icon-gray icon-small margin-right-5px",type:"time"}),Object(s["h"])(" "+Object(s["o"])(i.docCache.updateTime||"--"),1)])])):Object(s["f"])("",!0),Object(s["h"])(" 暂存文档 "+Object(s["o"])(i.docCache?i.docCache.name:""),1)],10,["title"])]})),_:1}),Object(s["i"])(s["b"],{name:"list-anim",appear:""},{default:Object(s["u"])((function(){return[Object(s["i"])("div",{class:["doc-card ",o.apiDocSelf?"":"doc-card-ghost"],title:o.apiDocSelf?o.apiDocSelf.name:"没有原始文档",onClick:t[4]||(t[4]=function(e){return o.apiDocSelf&&o.setApiDocSelf()})},[Ft,Object(s["h"])(" 原始文档 "+Object(s["o"])(o.apiDocSelf?o.apiDocSelf.name:""),1)],10,["title"])]})),_:1})]),Object(s["i"])(c,{class:"nav-head ",onSetApiDoc:t[5]||(t[5]=function(t){return e.$emit("set-doc",t)}),apiDoc:{name:"本地文档库"},onSearch:o.search},null,8,["onSearch"]),Object(s["i"])(s["c"],{onEnter:o.enter,"onAfter-leave":o.afterLeave,name:"list-anim",tag:"div",class:"docs-local "},{default:Object(s["u"])((function(){return[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(i.docsLocal,(function(n,r){return Object(s["j"])(),Object(s["e"])("div",{class:"doc-card flex-column",key:n.name,title:n.name},[Ht,Object(s["i"])("div",{onClick:function(t){return e.$emit("set-doc",n)},class:"abs doc-card-view flex-column"},[Object(s["i"])("div",Bt,[Object(s["i"])("div",Wt,Object(s["o"])(n.name),1)]),Object(s["i"])("div",zt,[Object(s["i"])("div",Vt,"版本:"+Object(s["o"])(n.version),1),Object(s["i"])("div",Gt,"作者: "+Object(s["o"])(n.author||""),1)]),Object(s["i"])("div",qt,[Object(s["i"])(a,{class:" icon-gray icon-small margin-right-5px",type:"time"}),Object(s["h"])(" "+Object(s["o"])(n.updateTime||"--"),1)])],8,["onClick"]),Object(s["i"])("span",{class:"doc-card-remove click",onClick:t[6]||(t[6]=function(){var t;return(t=e.$util).preventEvent.apply(t,arguments)})},[Object(s["i"])(a,{type:"close",class:"icon-gray",onClick:function(e){return o.remove(n,r)}},null,8,["onClick"])])],8,["title"])})),128))]})),_:1},8,["onEnter","onAfter-leave"]),Object(s["i"])(s["b"],{name:"anim-opacity"},{default:Object(s["u"])((function(){return[i.ajax?(Object(s["j"])(),Object(s["e"])("div",$t,[Object(s["i"])("div",Kt,[Object(s["i"])(a,{type:"refresh",class:"ajax-loading"}),Yt])])):Object(s["f"])("",!0)]})),_:1})])}var Qt={class:"flex-row-between flex-row-center"},Jt={class:"flex-row-center"},Zt={class:" flex-row-center"},en={class:"api-cache flex-row-center "},tn={key:0,class:"cache-doc"},nn={class:"cache-doc-head flex-row-center"},rn=Object(s["i"])("div",{class:"title"},"上次编辑的文档",-1),on={class:"cache-doc-footer flex-row-between"},an={class:"time aux flex-row-center"},sn=Object(s["i"])("div",{class:"dashed margin-left-5px margin-right-5px"},null,-1),cn={class:"flex-row-center"},ln={class:"cache-list"},un={class:"search flex-row-center"},fn={class:"input"},dn={key:0,class:"doc-list-view"},pn={class:"doc-list"},hn={class:"text-nowrap"},mn={key:0,class:"aux text-center"};function vn(e,t,n,r,i,o){var a=Object(s["n"])("Icon");return Object(s["j"])(),Object(s["e"])("div",Qt,[Object(s["i"])("div",Jt,[Object(s["i"])("div",Zt,[Object(s["i"])("div",en,[Object(s["i"])(a,{class:"logo icon icon-large ",type:"logo"}),Object(s["i"])(s["b"],{name:"anim-scale"},{default:Object(s["u"])((function(){return[e.apiDocDbCache?(Object(s["j"])(),Object(s["e"])("div",tn,[Object(s["i"])("div",nn,[Object(s["i"])(a,{class:"icon logo",type:"logo"}),rn]),Object(s["i"])("div",{class:"cache-doc-body",title:e.apiDocDbCache.name},Object(s["o"])(e.apiDocDbCache.name),9,["title"]),Object(s["i"])("div",on,[Object(s["i"])("div",an,Object(s["o"])(e.apiDocDbCache.updateTime),1),Object(s["i"])("div",null,[Object(s["i"])("span",{class:"btn-link",onClick:t[1]||(t[1]=function(e){return o.continueEdit(!1)})}," 放弃 "),Object(s["i"])("span",{class:"btn-link",onClick:t[2]||(t[2]=function(e){return o.continueEdit()})},"继续")])])])):Object(s["f"])("",!0)]})),_:1})]),Object(s["i"])("div",{class:"doc-name-input flex-row-center click blod",onClick:t[3]||(t[3]=function(e){return o.setApiDoc()})},Object(s["o"])(n.apiDoc&&n.apiDoc.name?n.apiDoc.name:"Simple-API"),1)])]),sn,Object(s["i"])("span",cn,[Object(s["i"])("div",ln,[Object(s["i"])("div",un,[Object(s["i"])("div",fn,[Object(s["v"])(Object(s["i"])("input",{placeholder:"查找本地文档",maxlength:"50","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.query.keyword=t}),onFocus:t[5]||(t[5]=function(){return o.getApiDocList.apply(o,arguments)})},null,544),[[s["s"],e.query.keyword]])]),Object(s["i"])(a,{class:"icon click",type:"search",onClick:o.search},null,8,["onClick"])]),e.visibleDocList?(Object(s["j"])(),Object(s["e"])("div",dn,[Object(s["i"])("div",pn,[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(e.apiDocList,(function(e,t){return Object(s["j"])(),Object(s["e"])("div",{class:["doc-item click flex-row-center",n.apiDoc&&e.name===n.apiDoc.name&&"item-selected"],key:t,value:e.name,onClick:function(t){return o.setApiDoc(e)}},[Object(s["i"])(a,{class:"icon icon-small logo margin-right-10px",type:"logo"}),Object(s["i"])("div",hn,Object(s["o"])(e.name||"未命名"),1)],10,["value","onClick"])})),128)),e.apiDocList&&e.apiDocList.length?Object(s["f"])("",!0):(Object(s["j"])(),Object(s["e"])("div",mn," 没有本地文档 "))])])):Object(s["f"])("",!0)]),Object(s["m"])(e.$slots,"action")])])}var gn={props:["apiDoc"],data:function(){return{dbStaus:!1,apiDocDbCache:null,apiDocList:[],visibleDocList:!1,query:{keyword:""}}},computed:{},mounted:function(){this.getApiDocCache(),window.addEventListener("click",this.domOnClick)},beforeUnmount:function(){this.$doc&&window.removeEventListener("click",this.domOnClick)},methods:{search:function(){this.getApiDocList(),this.$emit("search",this.query)},continueEdit:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&this.apiDocDbCache&&this.setApiDoc(this.apiDocDbCache),this.apiDocDbCache=null},addApiDoc:function(e){this.$emit("add")},setApiDoc:function(e){this.$emit("set-api-doc",e),this.visibleDocList=!1},domOnClick:function(e){e.path.find((function(e){return"cache-list"===e.className}))||(this.visibleDocList=!1)},getApiDocCache:function(){this.$api("doc.getCache").then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("[getApiDocCache]",e)}))},getApiDocList:function(){var e=this,t=this.query||{};this.visibleDocList=!0,this.$api("doc.getList",t).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("[getApiDocList]",t),e.apiDocList=t.data||[]}))}}};n("dafc");gn.render=vn;var bn=gn,yn={Nav:bn},On={components:yn,props:[],emits:[],data:function(){return{anim:!1,query:{docName:null},ajax:null,docsLocal:null,docCache:null}},computed:{apiDocSelf:function(){return window.apiDoc}},mounted:function(){this.getData()},methods:{doAction:function(e,t,n){console.log(e.target.getBoundingClientRect(),t,n)},enter:function(){this.anim=!0},afterLeave:function(){this.anim=!1},search:function(e){this.query=e,this.getData()},setApiDocSelf:function(){window.apiDoc?this.$emit("set-doc",window.apiDoc):window.alert("没有原始文档")},add:function(){this.$emit("set-doc",{})},remove:function(e,t){var n=this;e&&window.confirm("确认删除此文档?")&&this.$api("doc.remove",e.id).then((function(){n.getData()}))},getData:function(){this.getApiDocList(),this.getApiDocCache()},getApiDocCache:function(){var e=this;this.$api("doc.getCache").then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("[getApiDocCache]",t),e.docCache=t.data}))},getApiDocList:function(){var e=this;this.ajax&&this.ajax.cancel("取消获取文档列表");var t=this.query||{};this.ajax=this._api.axios.CancelToken.source();var n={cancelToken:this.ajax.token};this.$api("doc.getList",t,n).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.ajax=null,console.log("[getApiDocList]",t),e.docsLocal=t.data||[]}))}}};n("7ee2");On.render=Xt;var xn=On,En={class:"api-doc-view  abs flex-column"},wn={class:"api-doc-head"},Tn={class:"flex-row-center flex-row-between"},Sn={class:"flex-row-center "},Cn={class:"doc-name margin-right-5px"},_n={class:"doc-desc  flex-row-center text-nowrap"},jn=Object(s["i"])("span",{class:"margin-right-5px"}," Base URL : ",-1),An={class:"flex-row-center"},kn=Object(s["h"])("保存 "),Ln={class:"doc-action flex-row-center flex-row-between"},Rn={class:"flex-row-center"},Nn=Object(s["i"])("div",{class:"dashed",style:{width:"8px","margin-right":"-3px","margin-left":"-2px"}},null,-1),In=Object(s["i"])("span",null," 新增分组 ",-1),Mn=Object(s["i"])("div",{class:"dashed",style:{width:"15px"}},null,-1),Dn=Object(s["i"])("span",null," 新增接口 ",-1),Pn=Object(s["i"])("div",{class:"dashed"},null,-1),Un={class:"flex-row-center"},Fn=Object(s["i"])("div",{class:"dashed",style:{width:"5px"}},null,-1),Hn={class:"api-list"},Bn={class:"api-group-head flex-row-between"},Wn=Object(s["i"])("div",{class:"action"},null,-1),zn={key:0,class:"abs api-design-box"};function Vn(e,t,n,r,i,o){var a=Object(s["n"])("Icon"),c=Object(s["n"])("Step"),l=Object(s["n"])("ApiDesign"),u=Object(s["n"])("ApiDocBase");return Object(s["j"])(),Object(s["e"])("div",{class:["api-doc ",i.apiDesign?"design-effect":""]},[Object(s["i"])("div",En,[Object(s["i"])("div",wn,[Object(s["i"])(c,{class:"api-doc-base",style:{padding:"5px 0"}},{"step-head":Object(s["u"])((function(){return[Object(s["i"])(a,{type:"logo",class:"logo icon-large"})]})),default:Object(s["u"])((function(){return[Object(s["i"])("div",Tn,[Object(s["i"])("div",{class:"flex-column click",onClick:t[1]||(t[1]=function(e){return o.setDocBase(i.doc)})},[Object(s["i"])("div",Sn,[Object(s["i"])("span",Cn,Object(s["o"])(i.doc.name||"匿名文档"),1),Object(s["i"])(a,{type:"set",class:"icon"})]),Object(s["i"])("div",_n,[jn,Object(s["i"])("span",{class:"aux text-nowrap ",title:i.doc.baseURL},Object(s["o"])(i.doc.baseURL||"无"),9,["title"])])]),Object(s["i"])("div",An,[Object(s["i"])("span",{class:"btn-text ",onClick:t[2]||(t[2]=function(e){return o.saveApiDoc()})},[Object(s["i"])(a,{class:"icon icon-large",type:"save"}),kn]),Object(s["i"])("span",{class:"flex-row-center click margin-right-10px",onClick:t[3]||(t[3]=function(t){return e.$emit("close")})},[Object(s["i"])(a,{class:"icon icon-large icon-gray",type:"close"})])])])]})),_:1}),Object(s["i"])(c,{class:"flex-row-center step-doc-action"},{"step-head":Object(s["u"])((function(){return[Object(s["i"])(a,{type:"addDoc",class:"icon-gray"})]})),default:Object(s["u"])((function(){return[Object(s["i"])("div",Ln,[Object(s["i"])("div",Rn,[Nn,Object(s["i"])("span",{class:"btn-text ",onClick:t[4]||(t[4]=function(e){return o.setApiDesign({})})},[In]),Mn,Object(s["i"])("span",{class:"btn-text ",onClick:t[5]||(t[5]=function(e){return o.setApiDesign({})})},[Dn])]),Pn,Object(s["i"])("div",Un,[Object(s["m"])(e.$slots,"action"),Fn])])]})),_:3})]),Object(s["i"])("div",Hn,[(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(o.apiGroup,(function(e,n){return Object(s["j"])(),Object(s["e"])("div",{class:"api-group",key:n},[Object(s["i"])(c,{class:"step-group"},{"step-head":Object(s["u"])((function(){return[Object(s["i"])(a,{type:"group",class:["icon-gray icon-large",i.closeGroup[n]?"group-close":"group-open"]},null,8,["class"])]})),default:Object(s["u"])((function(){return[Object(s["i"])("div",Bn,[Object(s["i"])("div",{class:"group-name flex-row-center",onClick:function(e){return o.setCloseGroup(n)}},Object(s["o"])(n),9,["onClick"]),Wn])]})),_:2},1024),(Object(s["j"])(!0),Object(s["e"])(s["a"],null,Object(s["l"])(e,(function(e,r){return Object(s["v"])((Object(s["j"])(),Object(s["e"])(c,{class:"step-api",key:r},{"step-head":Object(s["u"])((function(){return[Object(s["i"])(a,{type:"logo",class:["step-trigger  icon-mini",i.openApi==e.group+e.name?"icon":"icon-gray"]},null,8,["class"])]})),default:Object(s["u"])((function(){return[Object(s["i"])(l,{onRemove:function(t){return o.removeApi(e)},onDesign:function(t){return o.setApiDesign(e)},onClose:t[6]||(t[6]=function(e){return o.setApiDesign(null)}),onOk:o.setApi,apiData:e,apiDoc:i.doc,onOpenParam:function(t){return o.setOpenApi(e)},open:i.openApi==e.group+e.name},null,8,["onRemove","onDesign","onOk","apiData","apiDoc","onOpenParam","open"])]})),_:2},1536)),[[s["t"],!i.closeGroup[n]]])})),128))])})),128))]),Object(s["i"])(s["b"],{name:"anim-design"},{default:Object(s["u"])((function(){return[i.apiDesign?(Object(s["j"])(),Object(s["e"])("div",zn,[i.apiDesign?(Object(s["j"])(),Object(s["e"])(l,{key:0,class:"abs",type:"design",onClose:t[7]||(t[7]=function(e){return o.setApiDesign(null)}),onOk:o.setApi,apiData:i.apiDesign,apiDoc:i.doc},null,8,["onOk","apiData","apiDoc"])):Object(s["f"])("",!0)])):Object(s["f"])("",!0)]})),_:1}),Object(s["i"])(s["b"],{name:"anim-design"},{default:Object(s["u"])((function(){return[i.docBase?(Object(s["j"])(),Object(s["e"])(u,{key:0,class:"abs ",apiDoc:i.doc,onSave:o.saveDocBase,onClose:t[8]||(t[8]=function(e){return o.setDocBase()})},null,8,["apiDoc","onSave"])):Object(s["f"])("",!0)]})),_:1})])],2)}n("c740");var Gn={key:0,class:"api-design-mini-head  flex-row-center"},qn={class:" flex-row-center "},$n={class:"api-name"},Kn={key:0,class:"alias opacity-half"},Yn={class:"flex-row-center "},Xn={class:"api-method flex-row-center"},Qn={class:"url text-nowrap"},Jn={class:"action flex-column"},Zn={key:1,class:"api-design-head flex-row-between"},er={class:"flex-row-center"},tr={key:0,class:"api-base flex-row-between flex-row-center"},nr={class:"flex-row-center"},rr=Object(s["i"])("label",{class:""},[Object(s["i"])("span",{class:"blod margin-right-20px"},"接口信息"),Object(s["i"])("span",{class:" margin-right-5px"},"名称 :")],-1),ir=Object(s["h"])("   "),or=Object(s["i"])("label",{class:"label "},"接口分组 :",-1),ar={class:"flex-row-center"},sr=Object(s["h"])("保存 "),cr={key:2,class:"api-url flex-row-center flex-row-between"},lr={class:"api-url-set flex-row-center"},ur=Object(s["i"])("label",{class:"blod"},null,-1),fr=Object(s["i"])("span",{class:"blod margin-right-20px"},"接口参数 ",-1),dr=Object(s["i"])("label",{class:"label label-auto margin-right-5px"},"类型 :",-1),pr=Object(s["g"])('<option value="get">get</option><option value="post">post</option><option value="put">put</option><option value="head">head</option><option value="delete">delete</option>',5),hr=Object(s["h"])("   "),mr=Object(s["i"])("label",{class:"label label-auto margin-right-5px"},"url :",-1),vr={key:3,class:"api-design-body flex-column"},gr={class:"api-param param-box"},br={key:0,class:"api-debug flex-column"},yr={class:"api-debug-head  flex-row-between"},Or={class:"flex-row-center text-nowrap"},xr=Object(s["i"])("span",{class:"blod margin-right-20px"},"接口调试",-1),Er={class:"action flex-row-center"},wr=Object(s["h"])("同步 "),Tr=Object(s["h"])("启动 "),Sr=Object(s["h"])("停止 "),Cr={class:"param-box"},_r=Object(s["i"])("span",{slot:"title",class:"label-auto flex-row-center text-nowrap"}," 调试结果 ",-1),jr={slot:"action"},Ar={key:0,class:"abs loading flex-column",size:"large",fix:""},kr={class:"flex-center"},Lr=Object(s["h"])("Loading... "),Rr=Object(s["i"])("div",{class:"aux-mini"},"仅支持同域请求和服务器跨域模式",-1);function Nr(e,t,n,r,i,o){var a=Object(s["n"])("Icon"),c=Object(s["n"])("IDE");return Object(s["j"])(),Object(s["e"])("div",{class:["api-design flex-column","design"==n.type?"":"api-design-mini"]},["design"!=n.type?(Object(s["j"])(),Object(s["e"])("div",Gn,[Object(s["i"])("div",{class:["api-design-mini-base flex-column click ",o.apiTheme],onClick:t[1]||(t[1]=function(t){return e.$emit("openParam",i.api)})},[Object(s["i"])("div",qn,[Object(s["i"])("span",$n,[Object(s["h"])(Object(s["o"])(i.api.name||"没有接口名")+" ",1),i.api.alias?(Object(s["j"])(),Object(s["e"])("span",Kn,Object(s["o"])(i.api.alias||"没有别名"),1)):Object(s["f"])("",!0)])]),Object(s["i"])("div",Yn,[Object(s["i"])("span",Xn,Object(s["o"])(i.api.method),1),Object(s["i"])("div",Qn,Object(s["o"])(o.url),1)])],2),Object(s["i"])("div",Jn,[Object(s["i"])("span",{class:"btn-text btn-text-small error",onClick:t[2]||(t[2]=function(t){return e.$emit("remove",i.api)})}," 删除 "),Object(s["i"])("span",{class:"btn-text btn-text-small",onClick:t[3]||(t[3]=function(t){return e.$emit("design",i.api)})}," 调试/编辑 ")])])):Object(s["f"])("",!0),"design"==n.type?(Object(s["j"])(),Object(s["e"])("div",Zn,[Object(s["i"])("div",er,["design"==n.type?(Object(s["j"])(),Object(s["e"])("div",tr,[Object(s["i"])("div",nr,[rr,Object(s["v"])(Object(s["i"])("input",{placeholder:"输入接口名称(50字符)",maxlength:"50","onUpdate:modelValue":t[4]||(t[4]=function(e){return i.api.name=e})},null,512),[[s["s"],i.api.name]]),Object(s["v"])(Object(s["i"])("input",{placeholder:"别名",maxlength:"50","onUpdate:modelValue":t[5]||(t[5]=function(e){return i.api.alias=e}),style:{width:"160px"}},null,512),[[s["s"],i.api.alias]]),ir,or,Object(s["v"])(Object(s["i"])("input",{placeholder:"输入接口名称(50字符)",maxlength:"50","onUpdate:modelValue":t[6]||(t[6]=function(e){return i.api.group=e})},null,512),[[s["s"],i.api.group]])])])):Object(s["f"])("",!0)]),Object(s["i"])("div",ar,[Object(s["i"])("span",{class:"btn-text ",onClick:t[7]||(t[7]=function(t){return e.$emit("ok",i.api)})},[Object(s["i"])(a,{class:"icon ",type:"save"}),sr]),Object(s["i"])("span",{class:"flex-row-center click",onClick:t[8]||(t[8]=function(t){return e.$emit("close")})},[Object(s["i"])(a,{class:"icon-gray",type:"close"})])])])):Object(s["f"])("",!0),"design"==n.type?(Object(s["j"])(),Object(s["e"])("div",cr,[Object(s["i"])("div",lr,[ur,fr,dr,Object(s["v"])(Object(s["i"])("select",{class:"method margin-right-20px",size:"small","onUpdate:modelValue":t[9]||(t[9]=function(e){return i.api.method=e}),slot:"prepend"},[pr],512),[[s["r"],i.api.method]]),hr,mr,Object(s["v"])(Object(s["i"])("input",{class:"url",placeholder:i.tips.url,maxlength:"2048",title:i.tips.url,"onUpdate:modelValue":t[10]||(t[10]=function(e){return i.api.url=e})},null,8,["placeholder","title"]),[[s["s"],i.api.url]])])])):Object(s["f"])("",!0),"design"==n.type||n.open?(Object(s["j"])(),Object(s["e"])("div",vr,[Object(s["i"])("div",gr,[Object(s["i"])(c,{class:"view",modelValue:i.api.param,"onUpdate:modelValue":t[11]||(t[11]=function(e){return i.api.param=e}),mode:"application/json"},{default:Object(s["u"])((function(){return[Object(s["i"])("span",{slot:"title",title:i.tips.paramTips},"请求参数",8,["title"])]})),_:1},8,["modelValue"]),Object(s["i"])(c,{mode:"application/json",class:"view",modelValue:i.api.result,"onUpdate:modelValue":t[12]||(t[12]=function(e){return i.api.result=e})},{default:Object(s["u"])((function(){return[Object(s["i"])("span",{slot:"title",title:i.tips.resultTips},"返回参数",8,["title"])]})),_:1},8,["modelValue"])]),"design"==n.type?(Object(s["j"])(),Object(s["e"])("div",br,[Object(s["i"])("div",yr,[Object(s["i"])("div",Or,[xr,Object(s["i"])("span",{class:["blod  margin-right-5px",o.apiTheme]},Object(s["o"])(i.api.method),3),Object(s["i"])("div",{class:["text-nowrap",o.apiTheme],title:o.url},Object(s["o"])(o.url),11,["title"])]),Object(s["i"])("div",Er,[o.resStr?(Object(s["j"])(),Object(s["e"])("span",{key:0,class:"btn-text",onClick:t[13]||(t[13]=function(e){return o.useRes()}),title:"同步至接口返回参数"},[Object(s["i"])(a,{class:"icon ",type:"refresh"}),wr])):Object(s["f"])("",!0),i.ajax?Object(s["f"])("",!0):(Object(s["j"])(),Object(s["e"])("span",{key:1,class:"btn-text flex-row-center",onClick:t[14]||(t[14]=function(e){return o.apiDebug()})},[Object(s["i"])(a,{class:"icon icon-mini",type:"debug"}),Tr])),i.ajax?(Object(s["j"])(),Object(s["e"])("span",{key:2,class:"btn-text flex-row-center",onClick:t[15]||(t[15]=function(e){return o.apiDebug(!0)})},[Object(s["i"])(a,{class:"icon icon-mini",type:"debug"}),Sr])):Object(s["f"])("",!0)])]),Object(s["i"])("div",Cr,[Object(s["i"])(c,{class:"view",modelValue:i.api.paramSet,"onUpdate:modelValue":t[16]||(t[16]=function(e){return i.api.paramSet=e})},{default:Object(s["u"])((function(){return[Object(s["i"])("span",{slot:"title",title:i.tips.paramSetTips},"参数设置",8,["title"])]})),_:1},8,["modelValue"]),o.resStr?Object(s["f"])("",!0):(Object(s["j"])(),Object(s["e"])(c,{key:0,class:"view",modelValue:i.api.resultSet,"onUpdate:modelValue":t[17]||(t[17]=function(e){return i.api.resultSet=e})},{default:Object(s["u"])((function(){return[Object(s["i"])("span",{slot:"title",title:i.tips.resultSetTips},"返回值",8,["title"])]})),_:1},8,["modelValue"])),o.resStr?(Object(s["j"])(),Object(s["e"])(c,{key:1,class:"view",modelValue:o.resStr,"onUpdate:modelValue":t[19]||(t[19]=function(e){return o.resStr=e})},{default:Object(s["u"])((function(){return[_r,Object(s["i"])("span",jr,[Object(s["i"])("span",{class:"flex-row-center",onClick:t[18]||(t[18]=function(e){return o.setRes(null)})},[Object(s["i"])(a,{class:"icon-gray click",type:"close"})])])]})),_:1},8,["modelValue"])):Object(s["f"])("",!0),Object(s["i"])(s["b"],{name:"anim-opacity"},{default:Object(s["u"])((function(){return[i.ajax?(Object(s["j"])(),Object(s["e"])("div",Ar,[Object(s["i"])("div",kr,[Object(s["i"])(a,{type:"refresh",class:"ajax-loading"}),Lr]),Rr])):Object(s["f"])("",!0)]})),_:1})])])):Object(s["f"])("",!0)])):Object(s["f"])("",!0)],2)}var Ir=n("2b55");n("c59b");Ir["a"].render=Nr;var Mr=Ir["a"],Dr={class:"doc-base"},Pr={class:"doc-base-head flex-row-between flex-row-center"},Ur=Object(s["i"])("label",{class:"label blod"},"文档基本信息",-1),Fr={class:"doc-base-body"},Hr={class:"param-item flex-row-center"},Br=Object(s["i"])("label",{class:"label"},"文档名称",-1),Wr={class:"param-item   flex-row-center"},zr=Object(s["i"])("label",{class:"label"},"Base URL",-1),Vr={class:"param-item   flex-row-center"},Gr=Object(s["i"])("label",{class:"label"},"文档版本",-1),qr={class:"param-item   flex-row-center"},$r=Object(s["i"])("label",{class:"label"},"文档作者",-1),Kr={class:"param-item   flex-row"},Yr=Object(s["i"])("label",{class:"label"},"文档描述",-1),Xr={class:"doc-base-footer"},Qr={class:"param-item  flex-row-between flex-row-center"},Jr=Object(s["i"])("div",{class:"flex-row-center",style:{"flex-grow":"1"}},null,-1),Zr={class:"flex-row-center"};function ei(e,t,n,r,i,o){var a=Object(s["n"])("Icon");return Object(s["j"])(),Object(s["e"])("div",Dr,[Object(s["i"])("div",{class:"doc-base-view flex-column",onClick:t[9]||(t[9]=Object(s["w"])((function(){}),["stop"]))},[Object(s["i"])("div",Pr,[Ur,Object(s["i"])("span",{class:"flex-row-center click",onClick:t[1]||(t[1]=function(t){return e.$emit("close")})},[Object(s["i"])(a,{class:"icon icon-gray",type:"close"})])]),Object(s["i"])("div",Fr,[Object(s["i"])("div",Hr,[Br,Object(s["v"])(Object(s["i"])("input",{class:"doc-base-input",placeholder:"输入接口名称(50字符)",maxlength:"50","onUpdate:modelValue":t[2]||(t[2]=function(e){return i.form.name=e})},null,512),[[s["s"],i.form.name]])]),Object(s["i"])("div",Wr,[zr,Object(s["v"])(Object(s["i"])("input",{class:"doc-base-input",placeholder:"输入 Base URL","onUpdate:modelValue":t[3]||(t[3]=function(e){return i.form.baseURL=e})},null,512),[[s["s"],i.form.baseURL]])]),Object(s["i"])("div",Vr,[Gr,Object(s["v"])(Object(s["i"])("input",{class:"doc-base-input",placeholder:"输入接口文档版本(50字符)",maxlength:"50","onUpdate:modelValue":t[4]||(t[4]=function(e){return i.form.version=e})},null,512),[[s["s"],i.form.version]])]),Object(s["i"])("div",qr,[$r,Object(s["v"])(Object(s["i"])("input",{class:"doc-base-input",placeholder:"输入作者名称(50字符)",maxlength:"50","onUpdate:modelValue":t[5]||(t[5]=function(e){return i.form.author=e})},null,512),[[s["s"],i.form.author]])]),Object(s["i"])("div",Kr,[Yr,Object(s["v"])(Object(s["i"])("textarea",{class:"textarea  doc-base-input",placeholder:"输入接口文档描述(200字符以内)",maxlength:"200","onUpdate:modelValue":t[6]||(t[6]=function(e){return i.form.desc=e})},null,512),[[s["s"],i.form.desc]])])]),Object(s["i"])("div",Xr,[Object(s["i"])("div",Qr,[Jr,Object(s["i"])("div",Zr,[Object(s["i"])("span",{class:"btn-text  ",onClick:t[7]||(t[7]=function(t){return e.$emit("close")})}," 取消 "),Object(s["i"])("span",{class:"btn-text flex-row-center",onClick:t[8]||(t[8]=function(t){return e.$emit("save",i.form)})}," 确认 ")])])])])])}var ti={props:["apiDoc"],data:function(){return{form:{}}},mounted:function(){this.setForm()},methods:{setForm:function(){this.form=Object.assign({},this.apiDoc)}}};n("e1f3");ti.render=ei;var ni=ti,ri={ApiDesign:Mr,ApiDocBase:ni},ii={components:ri,props:{apiDoc:{},anim:{}},data:function(){return{formBase:{name:"",baseURL:"/api",version:"1.0",desc:"没有描述",author:"匿名",createTime:this.$util.dateFormat(),apigroup:{"默认分组":"deafult"},api:[]},doc:{},docBase:null,apiDesign:null,openApi:null,closeGroup:{}}},watch:{apiDoc:function(e,t){this.setDoc()}},computed:{apiGroup:function(){var e=this.doc||{},t=e.api,n={};for(var r in t){var i=t[r].group||"默认分组",o=t[r].name;n[i]=n[i]||{},n[i][o]=t[r]}return n}},mounted:function(){this.setDocContorl(),this.setDoc()},methods:{setDocBase:function(e){this.docBase=e},saveDocBase:function(e){var t=this;this.save(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};1==e.code&&t.setDocBase()}))},setDocContorl:function(){var e=this,t=function(){e.cache()},n=function(t){var n=navigator.platform.match("Mac")?t.metaKey:t.ctrlKey,r=83==t.keyCode&&n;r&&(t.preventDefault(),e.cache(),e.save())};window.document.addEventListener("keydown",n),window.addEventListener("beforeunload",t)},cache:function(e){var t=this.doc;t.updateTime=this.$util.dateFormat(),t&&this.$api("doc.cache",t)},saveApiDoc:function(e){var t=this;this.save(this.doc,(function(){t.$emit("set-design",null)}))},save:function(e,t){var n=this;if(console.log("[doc.save]",e),e){if(!e.name)return this.setDocBase(e),window.alert("输入文档名称");var r=this.$util.dateFormat();e.createTime=e.createTime||r,e.updateTime=r,this.$api("doc.save",e).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("[doc.save]",e),t&&t(e),1!=e.code?window.alert(e.message):n.doc=e.data}))}},setCloseGroup:function(e){var t=!this.closeGroup[e];this.$set(this.closeGroup,e,t)},setOpenApi:function(e){if(e){var t=e.group+e.name;this.openApi=this.openApi==t?null:t}},setDoc:function(){this.doc=Object.assign({},this.formBase,this.apiDoc),console.log("[setDoc]",this.doc,this.apiDoc),this.setApiDesign(),this.setDocBase(this.apiDoc&&!this.doc.name?this.doc:null)},setApiDesign:function(e){this.apiDesign=e},setApi:function(e){var t=this;if(console.log("[setApi]",e,this.apiDesign),e&&this.apiDesign){this.doc.api||this.$set(this.doc,"api",[]);var n=(this.doc||{}).api||[],r=n.findIndex((function(e){var n=e.group+e.name,r=t.apiDesign.group+t.apiDesign.name;return n==r})),i=n.findIndex((function(t){var n=t.group+t.name,r=e.group+e.name;return n==r}));if(console.log("[setApi]",i,r),-1!=i&&(-1==r||r!==i))return window.alert("api名称重复 \n分组 : ".concat(e.group," \napi名称 : ").concat(e.name," "));-1==r&&this.doc.api.unshift(e),-1!=r&&this.$set(this.doc.api,r,e),this.setApiDesign()}},removeApi:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(this.apiDoc.list||[]).findIndex((function(t){return t.group+t.name===e.group+e.name}));if(t>=0){var n="确认删除:\n"+e.group+" - "+e.name;window.confirm(n)}},addApi:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(this.apiDoc.list||[]).find((function(n){return n.group+n.name===e+t}));n||(n={group:e,name:t,method:"get",url:"",param:"",result:""}),this.api=n}}};n("cd3f");ii.render=Vn;var oi=ii,ai={class:"modal"},si={class:"modal-view api-import flex-cloumn"},ci=Object(s["i"])("div",{class:"modal-view-head flex-row-center flex-row-between"},[Object(s["i"])("label",null,"文档导入")],-1),li={class:"import-remote flex-row-center"},ui=Object(s["i"])("div",{class:"label"},"文档地址",-1),fi={class:"input"},di=Object(s["h"])("获取 "),pi={key:0,class:"abs loading flex-center",size:"large",fix:""},hi=Object(s["i"])("div",null,"Loading...",-1),mi=Object(s["i"])("br",null,null,-1),vi=Object(s["i"])("div",{class:"flex-center warning"},"确保远程文档允许跨域访问",-1),gi=Object(s["i"])("br",null,null,-1),bi={key:1,class:"flex-center error"},yi={class:"api-import-info flex-column"},Oi={key:0,class:"api-doc-info"},xi={class:"api-item flex-start"},Ei=Object(s["i"])("label",{class:"label"},"文档名称 :",-1),wi={class:"api-item flex-start"},Ti=Object(s["i"])("label",{class:"label"},"更新时间 :",-1),Si={class:"api-item flex-start"},Ci=Object(s["i"])("label",{class:"label"},"文档详情 :",-1),_i={class:"textarea"},ji={key:1,class:"api-doc-info flex-column-center"},Ai={key:0,class:"aux"},ki=Object(s["h"])("导入文档 "),Li={class:"iframe-api-import",name:"importDoc",ref:"importDoc"},Ri={class:"modal-view-footer flex-row-between"},Ni={class:"time flex-row-center"};function Ii(e,t,n,r,i,o){var a=Object(s["n"])("Icon");return Object(s["j"])(),Object(s["e"])("div",ai,[Object(s["i"])("div",si,[ci,Object(s["i"])("div",{class:"modal-view-body",onDrop:t[7]||(t[7]=function(){return o.fileUpload.apply(o,arguments)}),onDragover:t[8]||(t[8]=function(){return o.preventEvent.apply(o,arguments)})},[Object(s["i"])(s["b"],{name:"anim-loading"},{default:Object(s["u"])((function(){return[e.apiRemoteVisible?(Object(s["j"])(),Object(s["e"])("div",{key:0,class:"import-remote-view abs flex-column",onDrop:t[3]||(t[3]=function(){return o.fileUpload.apply(o,arguments)}),onDragover:t[4]||(t[4]=function(){return o.preventEvent.apply(o,arguments)})},[Object(s["i"])("div",li,[ui,Object(s["i"])("div",fi,[Object(s["v"])(Object(s["i"])("input",{maxlength:"2048","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.apiRemoteUrl=t}),placeholder:"输入远程文档地址"},null,512),[[s["s"],e.apiRemoteUrl]])]),Object(s["i"])("div",{class:"btn-text click",onClick:t[2]||(t[2]=function(e){return o.getApiDocRemote()})},[Object(s["i"])(a,{class:"icon",type:"download"}),di])]),!e.ajax?Object(s["f"])("",!0):(Object(s["j"])(),Object(s["e"])("div",pi,[Object(s["i"])(a,{type:"refresh",class:"ajax-loading"}),hi])),mi,vi,gi,e.apiImportDocInfo?(Object(s["j"])(),Object(s["e"])("div",bi,Object(s["o"])(e.apiImportDocInfo),1)):Object(s["f"])("",!0)],32)):Object(s["f"])("",!0)]})),_:1}),Object(s["i"])("div",yi,[e.apiImportDoc?(Object(s["j"])(),Object(s["e"])("div",Oi,[Object(s["i"])("div",xi,[Ei,Object(s["h"])(" "+Object(s["o"])(e.apiImportDoc.name||"无"),1)]),Object(s["i"])("div",wi,[Ti,Object(s["h"])(" "+Object(s["o"])(e.apiImportDoc.updateTime||"无"),1)]),Object(s["i"])("div",Si,[Ci,Object(s["i"])("div",_i,[Object(s["i"])("textarea",{class:"textarea",maxlength:"20480",value:o.apiImportDocStr},null,8,["value"])])])])):Object(s["f"])("",!0),e.apiImportDoc?Object(s["f"])("",!0):(Object(s["j"])(),Object(s["e"])("div",ji,[e.apiImportDocInfo?(Object(s["j"])(),Object(s["e"])("div",Ai,Object(s["o"])(e.apiImportDocInfo),1)):Object(s["f"])("",!0),Object(s["i"])("label",{class:"btn-import flex-row-center",onClick:t[5]||(t[5]=function(t){return e.$refs["inputUpload"].click()})},[Object(s["i"])(a,{class:"icon",type:"download"}),ki])]))]),Object(s["i"])("input",{type:"file",class:"iframe-api-import",ref:"inputUpload",onChange:t[6]||(t[6]=function(){return o.fileUpload.apply(o,arguments)}),placeholder:""},null,544),Object(s["i"])("iframe",Li,null,512)],32),Object(s["i"])("div",Ri,[Object(s["i"])("div",Ni,[Object(s["i"])("span",{class:"btn click",onClick:t[9]||(t[9]=function(t){return e.apiRemoteVisible=!e.apiRemoteVisible})},"远程文档")]),Object(s["i"])("div",null,[Object(s["i"])(s["b"],{name:"anim-opacity"},{default:Object(s["u"])((function(){return[e.apiImportDoc?(Object(s["j"])(),Object(s["e"])("span",{key:0,class:"btn",onClick:t[10]||(t[10]=function(t){return e.$emit("ok",e.apiImportDoc)})},"确认")):Object(s["f"])("",!0)]})),_:1}),Object(s["i"])("span",{class:"btn",onClick:t[11]||(t[11]=function(t){return e.$emit("close")})},"关闭")])])])])}var Mi={props:["url"],data:function(){return{ajax:null,apiRemoteVisible:!1,apiRemoteUrl:this.url||"",apiImportDoc:null,apiImportDocInfo:""}},computed:{apiImportDocStr:function(){return this.apiImportDoc?JSON.stringify(this.apiImportDoc,null,2):"无"}},mounted:function(){},beforeUnmount:function(){this.ajax=window.axios.CancelToken.source()},methods:{preventEvent:function(e){e.preventDefault(),e.stopPropagation()},setApiDocImport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new RegExp('(<script id="ApiDocScript">)(.+?)(<\/script>)'),n=t.exec(e)||[],r=n[2];r||(r=" var apiDoc = "+e);var i="<script>".concat(r,"</scrip")+"t>";this.$refs["importDoc"].contentWindow.apiDoc=null,this.$refs["importDoc"].contentWindow.document.write(i);var o=this.$refs["importDoc"].contentWindow.apiDoc;return o&&(this.apiImportDoc=JSON.parse(JSON.stringify(o))),o},fileUpload:function(e){var t=this;this.apiImportDoc=null,this.apiImportDocInfo=null;var n=e.target;"drop"==e.type&&(n=e.dataTransfer);var r=((n||{}).files||[])[0];if(r.size>209715200)return this.apiImportDocInfo="请选择200M以内的文档";if(r){var i=new FileReader;i.readAsText(r),i.onload=function(e,n){t.setApiDocImport(i.result)||(t.apiImportDocInfo="[".concat(r.name,"]不是正确的文档"))}}},getApiDocRemote:function(e){var t=this;if(this.ajax&&this.ajax.cancel("取消调试"),e)return this.ajax=!1;var n=this.apiRemoteUrl;if(!n)return this.apiImportDocInfo="输入远程文档地址";this.apiImportDocInfo=null,this.apiImportDoc=null,this.ajax=window.axios.CancelToken.source();var r={method:"get",url:n,cancelToken:this.ajax.token};this.$ajax(r).then((function(e){t.ajax=null,t.setApiDocImport(e)?t.apiRemoteVisible=!1:t.apiImportDocInfo="远程文档[".concat(n,"]不是正确的文档")}))}}};n("c9ea");Mi.render=Ii;var Di=Mi,Pi={class:"modal"},Ui={class:"modal-view api-export flex-cloumn"},Fi=Object(s["i"])("div",{class:"modal-view-head flex-row-center"},"文档导出",-1),Hi={class:"modal-view-body flex-row-center"},Bi={class:"click flex-row-center"},Wi=Object(s["h"])("html "),zi=Object(s["h"])("  "),Vi={class:"click flex-row-center"},Gi=Object(s["h"])("json "),qi=Object(s["h"])("  "),$i={class:"click flex-row-center"},Ki=Object(s["h"])("接口文件 "),Yi=Object(s["h"])("  "),Xi={class:"click flex-row-center"},Qi=Object(s["h"])("自定义 "),Ji={class:"modal-view-footer flex-row-between"},Zi=Object(s["i"])("div",{class:"time aux flex-row-center"},null,-1);function eo(e,t,n,r,i,o){return Object(s["j"])(),Object(s["e"])("div",Pi,[Object(s["i"])("div",Ui,[Fi,Object(s["i"])("div",Hi,[Object(s["i"])("label",Bi,[Object(s["v"])(Object(s["i"])("input",{type:"radio","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.apiExportMode=t}),value:"html",name:"apiExportMode"},null,512),[[s["q"],e.apiExportMode]]),Wi]),zi,Object(s["i"])("label",Vi,[Object(s["v"])(Object(s["i"])("input",{type:"radio","onUpdate:modelValue":t[2]||(t[2]=function(t){return e.apiExportMode=t}),value:"json",name:"apiExportMode"},null,512),[[s["q"],e.apiExportMode]]),Gi]),qi,Object(s["i"])("label",$i,[Object(s["v"])(Object(s["i"])("input",{type:"radio","onUpdate:modelValue":t[3]||(t[3]=function(t){return e.apiExportMode=t}),value:"api",name:"apiExportMode"},null,512),[[s["q"],e.apiExportMode]]),Ki]),Yi,Object(s["i"])("label",Xi,[Object(s["v"])(Object(s["i"])("input",{type:"radio","onUpdate:modelValue":t[4]||(t[4]=function(t){return e.apiExportMode=t}),value:"custom",name:"apiExportMode"},null,512),[[s["q"],e.apiExportMode]]),Qi])]),Object(s["i"])("div",Ji,[Zi,Object(s["i"])("div",null,[Object(s["i"])("span",{class:"btn",onClick:t[5]||(t[5]=function(t){return e.$emit("ok",e.apiExportMode)})},"确认"),Object(s["i"])("span",{class:"btn",onClick:t[6]||(t[6]=function(t){return e.$emit("close")})},"关闭")])])])])}var to={props:["apiDoc"],data:function(){return{apiExportMode:"html"}},methods:{}};n("5543");to.render=eo;var no=to,ro={DocManage:xn,ApiDoc:oi,ApiImport:Di,ApiExport:no},io={components:ro,data:function(){return{apiDoc:null,apiDocAnim:{start:"transform:scale(0);",end:null,dur:"anim-dur-0"},visibleApiImport:!1,visibleApiExport:!1}},mounted:function(){this.getApiDoc(),window.addEventListener("hashchange",this.hashchange)},beforeUnmount:function(){window.removeEventListener("hashchange",this.hashchange)},methods:{apiImport:function(e){e&&(this.visibleApiImport=!1,this.setApiDoc(e))},apiExport:function(e){var t=this;window.apiExport(this.apiDoc,e,(function(){t.visibleApiExport=!1}))},hashchange:function(e){this.getApiDoc()},updateDocManage:function(){this.apiDoc||this.$refs.docManage&&this.$refs.docManage.search()},setApiDoc:function(e){var t=this;if(e){var n=window.event||{},r=n.pageX||0,i=n.pageY||0,o=n.path||[],a=o.find((function(e){return e.classList&&e.classList.contains("doc-card")})),s=a.getBoundingClientRect();r=s.left+s.width/2,i=s.top+s.height/2,console.log("[setApiDoc]",e,window.event.pageY,o,a,s),this.apiDocAnim={start:"transform-origin:".concat(r,"px ").concat(i,"px;transform:scale(0);opacity: .5;pointer-events: none;"),end:null,dur:"anim-dur-0"},this.$nextTick((function(){t.apiDocAnim.dur="anim-dur",t.apiDocAnim.end="transform-origin:".concat(r,"px ").concat(i,"px;transform:scale(1);opacity: 1;pointer-events: all;")}))}e||(this.apiDocAnim.end=null),this.apiDoc=e,this.updateDocManage()},getDocNameFromUrl:function(){var e=null;try{var t=new URL(location.href);t.search=(t.hash||"").replace("#",""),e=t.searchParams.get("doc")}catch(n){}return e},getApiDoc:function(){var e=this,t=this.getDocNameFromUrl();if(!t)return this.setApiDoc(window.apiDoc);this.$api("doc.find",{name:t}).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("[getApiDoc]",t),e.setApiDoc(t.data||window.apiDoc)}))}}};window.cmpt=io;var oo=io;n("64be"),n("16e8");oo.render=Ot;var ao=oo,so=Object(s["d"])(ao);so.use(mt);var co={user:{name:"admin"},list:new Array(0).fill(1).map((function(e,t){return{i:t}})),setUser:function(e){this.user=e}};window.s=co,window.ss=Object(s["k"])(co),window.s1=Object(s["k"])(co),so.provide("session",window.ss),window.app=so.mount("#app"),window.ap=so},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5fb2":function(e,t,n){"use strict";var r=2147483647,i=36,o=1,a=26,s=38,c=700,l=72,u=128,f="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",m=i-o,v=Math.floor,g=String.fromCharCode,b=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},y=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>m*a>>1;r+=i)e=v(e/m);return v(r+(m+1)*e/(e+s))},x=function(e){var t=[];e=b(e);var n,s,c=e.length,d=u,p=0,m=l;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(g(s));var x=t.length,E=x;x&&t.push(f);while(E<c){var w=r;for(n=0;n<e.length;n++)s=e[n],s>=d&&s<w&&(w=s);var T=E+1;if(w-d>v((r-p)/T))throw RangeError(h);for(p+=(w-d)*T,d=w,n=0;n<e.length;n++){if(s=e[n],s<d&&++p>r)throw RangeError(h);if(s==d){for(var S=p,C=i;;C+=i){var _=C<=m?o:C>=m+a?a:C-m;if(S<_)break;var j=S-_,A=i-_;t.push(g(y(_+j%A))),S=v(j/A)}t.push(g(y(S))),m=O(p,T,E==x),p=0,++E}}++p,++d}return t.join("")};e.exports=function(e){var t,n,r=[],i=e.toLowerCase().replace(p,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(d.test(n)?"xn--"+x(n):n);return r.join(".")}},"608d":function(e,t,n){},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,f=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){var n=c(e),i=arguments.length,u=1,f=a.f,d=s.f;while(i>u){var p,h=l(arguments[u++]),m=f?o(h).concat(f(h)):o(h),v=m.length,g=0;while(v>g)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:u},"621a":function(e,t,n){"use strict";var r=n("da84"),i=n("83ab"),o=n("a981"),a=n("9112"),s=n("e2cc"),c=n("d039"),l=n("19aa"),u=n("a691"),f=n("50c4"),d=n("0b25"),p=n("77a7"),h=n("e163"),m=n("d2bb"),v=n("241c").f,g=n("9bf2").f,b=n("81d5"),y=n("d44e"),O=n("69f3"),x=O.get,E=O.set,w="ArrayBuffer",T="DataView",S="prototype",C="Wrong length",_="Wrong index",j=r[w],A=j,k=r[T],L=k&&k[S],R=Object.prototype,N=r.RangeError,I=p.pack,M=p.unpack,D=function(e){return[255&e]},P=function(e){return[255&e,e>>8&255]},U=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return I(e,23,4)},B=function(e){return I(e,52,8)},W=function(e,t){g(e[S],t,{get:function(){return x(this)[t]}})},z=function(e,t,n,r){var i=d(n),o=x(e);if(i+t>o.byteLength)throw N(_);var a=x(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},V=function(e,t,n,r,i,o){var a=d(n),s=x(e);if(a+t>s.byteLength)throw N(_);for(var c=x(s.buffer).bytes,l=a+s.byteOffset,u=r(+i),f=0;f<t;f++)c[l+f]=u[o?f:t-f-1]};if(o){if(!c((function(){j(1)}))||!c((function(){new j(-1)}))||c((function(){return new j,new j(1.5),new j(NaN),j.name!=w}))){A=function(e){return l(this,A),new j(d(e))};for(var G,q=A[S]=j[S],$=v(j),K=0;$.length>K;)(G=$[K++])in A||a(A,G,j[G]);q.constructor=A}m&&h(L)!==R&&m(L,R);var Y=new k(new A(2)),X=L.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||s(L,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else A=function(e){l(this,A,w);var t=d(e);E(this,{bytes:b.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},k=function(e,t,n){l(this,k,T),l(e,A,T);var r=x(e).byteLength,o=u(t);if(o<0||o>r)throw N("Wrong offset");if(n=void 0===n?r-o:f(n),o+n>r)throw N(C);E(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(W(A,"byteLength"),W(k,"buffer"),W(k,"byteLength"),W(k,"byteOffset")),s(k[S],{getInt8:function(e){return z(this,1,e)[0]<<24>>24},getUint8:function(e){return z(this,1,e)[0]},getInt16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F(z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return M(z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,D,t)},setUint8:function(e,t){V(this,1,e,D,t)},setInt16:function(e,t){V(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,P,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,B,t,arguments.length>2?arguments[2]:void 0)}});y(A,w),y(k,T),e.exports={ArrayBuffer:A,DataView:k}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"638c":function(e,t,n){(function(e){var r,i,o;n("ac1f"),n("466d"),n("1276");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";e.defineMode("sql",(function(t,n){var r=n.client||{},i=n.atoms||{false:!0,true:!0,null:!0},o=n.builtin||{},a=n.keywords||{},s=n.operatorChars||/^[*+\-%<>!=&|~^]/,c=n.support||{},l=n.hooks||{},u=n.dateSQL||{date:!0,time:!0,timestamp:!0},f=!1!==n.backslashStringEscapes,d=n.brackets||/^[\{}\(\)\[\]]/,p=n.punctuation||/^[;.,:]/;function h(e,t){var n=e.next();if(l[n]){var f=l[n](e,t);if(!1!==f)return f}if(c.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(c.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),c.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&c.doubleQuote)return t.tokenize=m(n),t.tokenize(e,t);if((c.nCharCast&&("n"==n||"N"==n)||c.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(c.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(c.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!c.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=v(1),t.tokenize(e,t);if("."!=n){if(s.test(n))return e.eatWhile(s),"operator";if(d.test(n))return e.eatWhile(d),"bracket";if(p.test(n))return e.eatWhile(p),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var h=e.current().toLowerCase();return u.hasOwnProperty(h)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":i.hasOwnProperty(h)?"atom":o.hasOwnProperty(h)?"builtin":a.hasOwnProperty(h)?"keyword":r.hasOwnProperty(h)?"string-2":null}return c.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:c.ODBCdotTable&&e.match(/^[\w\d_]+/)?"variable-2":void 0}function m(e){return function(t,n){var r,i=!1;while(null!=(r=t.next())){if(r==e&&!i){n.tokenize=h;break}i=f&&!i&&"\\"==r}return"string"}}function v(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=v(e+1):n.tokenize=e>1?v(e-1):h:t.skipToEnd(),"comment"}}function g(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function b(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==h&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?g(e,t,")"):"["==r?g(e,t,"]"):t.context&&t.context.type==r&&b(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:c.commentSlashSlash?"//":c.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}})),function(){function t(e){var t;while(null!=(t=e.next()))if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){var t;while(null!=(t=e.next()))if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':n,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get global go goto grant granted greatest grouping groups handler header hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lc_collate lc_ctype lead leading leakproof least left length level library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict restricted result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat attach path depends detach zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})}()}))}).call(this,n("62e4")(e))},"64be":function(e,t,n){"use strict";n("c894")},6547:function(e,t,n){var r=n("a691"),i=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),o=n("e2cc"),a=n("0366"),s=n("19aa"),c=n("2266"),l=n("7dd0"),u=n("2626"),f=n("83ab"),d=n("f183").fastKey,p=n("69f3"),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&c(r,e[l],e,n)})),p=m(t),v=function(e,t,n){var r,i,o=p(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=p(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=p(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),o(u.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);l(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"65f0":function(e,t,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,i,o,a=n("7f9a"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),f=n("f772"),d=n("d012"),p=s.WeakMap,h=function(e){return o(e)?i(e):r(e,{})},m=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=new p,g=v.get,b=v.has,y=v.set;r=function(e,t){return y.call(v,e,t),t},i=function(e){return g.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var O=f("state");d[O]=!0,r=function(e,t){return l(e,O,t),t},i=function(e){return u(e,O)?e[O]:{}},o=function(e){return u(e,O)}}e.exports={set:r,get:i,has:o,enforce:h,getterFor:m}},"6b58":function(e,t,n){var r=n("7037"),i=n("3c96");function o(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}e.exports=o},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("f183"),c=n("2266"),l=n("19aa"),u=n("861d"),f=n("d039"),d=n("1c7e"),p=n("d44e"),h=n("7156");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",b=i[e],y=b&&b.prototype,O=b,x={},E=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(v||y.forEach&&!f((function(){(new b).entries().next()})))))O=n.getConstructor(t,e,m,g),s.REQUIRED=!0;else if(o(e,!0)){var w=new O,T=w[g](v?{}:-0,1)!=w,S=f((function(){w.has(1)})),C=d((function(e){new b(e)})),_=!v&&f((function(){var e=new b,t=5;while(t--)e[g](t,t);return!e.has(-0)}));C||(O=t((function(t,n){l(t,O,e);var r=h(new b,t,O);return void 0!=n&&c(n,r[g],r,m),r})),O.prototype=y,y.constructor=O),(S||_)&&(E("delete"),E("has"),m&&E("get")),(_||T)&&E(g),v&&y.clear&&delete y.clear}return x[e]=O,r({global:!0,forced:O!=b},x),p(O,e),v||n.setStrong(O,e,m),O}},"6eeb":function(e,t,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f8f":function(e,t,n){function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n("d3b7"),n("4ae1"),n("25f0"),e.exports=r},7037:function(e,t,n){function r(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=r},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("057f").f,a=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:o})},7156:function(e,t,n){var r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"77a7":function(e,t){var n=1/0,r=Math.abs,i=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2,c=function(e,t,c){var l,u,f,d=new Array(c),p=8*c-t-1,h=(1<<p)-1,m=h>>1,v=23===t?i(2,-24)-i(2,-77):0,g=e<0||0===e&&1/e<0?1:0,b=0;for(e=r(e),e!=e||e===n?(u=e!=e?1:0,l=h):(l=o(a(e)/s),e*(f=i(2,-l))<1&&(l--,f*=2),e+=l+m>=1?v/f:v*i(2,1-m),e*f>=2&&(l++,f/=2),l+m>=h?(u=0,l=h):l+m>=1?(u=(e*f-1)*i(2,t),l+=m):(u=e*i(2,m-1)*i(2,t),l=0));t>=8;d[b++]=255&u,u/=256,t-=8);for(l=l<<t|u,p+=t;p>0;d[b++]=255&l,l/=256,p-=8);return d[--b]|=128*g,d},l=function(e,t){var r,o=e.length,a=8*o-t-1,s=(1<<a)-1,c=s>>1,l=a-7,u=o-1,f=e[u--],d=127&f;for(f>>=7;l>0;d=256*d+e[u],u--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[u],u--,l-=8);if(0===d)d=1-c;else{if(d===s)return r?NaN:f?-n:n;r+=i(2,t),d-=c}return(f?-1:1)*r*i(2,d-t)};e.exports={pack:c,unpack:l}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a23":function(e,t,n){"use strict";n.d(t,"k",(function(){return ue})),n.d(t,"o",(function(){return r["K"]})),n.d(t,"a",(function(){return St})),n.d(t,"e",(function(){return It})),n.d(t,"f",(function(){return Gt})),n.d(t,"g",(function(){return Vt})),n.d(t,"h",(function(){return zt})),n.d(t,"i",(function(){return Ht})),n.d(t,"j",(function(){return Lt})),n.d(t,"l",(function(){return Hr})),n.d(t,"m",(function(){return vt})),n.d(t,"n",(function(){return xt})),n.d(t,"u",(function(){return gt})),n.d(t,"v",(function(){return zn})),n.d(t,"b",(function(){return xi})),n.d(t,"c",(function(){return Ui})),n.d(t,"d",(function(){return uo})),n.d(t,"p",(function(){return Yi})),n.d(t,"q",(function(){return Qi})),n.d(t,"r",(function(){return Ji})),n.d(t,"s",(function(){return Ki})),n.d(t,"t",(function(){return oo})),n.d(t,"w",(function(){return io}));var r=n("9ff4");const i=new WeakMap,o=[];let a;const s=Symbol(""),c=Symbol("");function l(e){return e&&!0===e._isEffect}function u(e,t=r["b"]){l(e)&&(e=e.raw);const n=p(e,t);return t.lazy||n(),n}function f(e){e.active&&(h(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let d=0;function p(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!o.includes(n)){h(n);try{return b(),o.push(n),a=n,e()}finally{o.pop(),y(),a=o[o.length-1]}}};return n.id=d++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function h(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let m=!0;const v=[];function g(){v.push(m),m=!1}function b(){v.push(m),m=!0}function y(){const e=v.pop();m=void 0===e||e}function O(e,t,n){if(!m||void 0===a)return;let r=i.get(e);r||i.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(a)||(o.add(a),a.deps.push(o))}function x(e,t,n,o,l,u){const f=i.get(e);if(!f)return;const d=new Set,p=e=>{e&&e.forEach(e=>{(e!==a||e.options.allowRecurse)&&d.add(e)})};if("clear"===t)f.forEach(p);else if("length"===n&&Object(r["n"])(e))f.forEach((e,t)=>{("length"===t||t>=o)&&p(e)});else switch(void 0!==n&&p(f.get(n)),t){case"add":Object(r["n"])(e)?Object(r["r"])(n)&&p(f.get("length")):(p(f.get(s)),Object(r["s"])(e)&&p(f.get(c)));break;case"delete":Object(r["n"])(e)||(p(f.get(s)),Object(r["s"])(e)&&p(f.get(c)));break;case"set":Object(r["s"])(e)&&p(f.get(s));break}const h=e=>{e.options.scheduler?e.options.scheduler(e):e()};d.forEach(h)}const E=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(r["C"])),w=j(),T=j(!1,!0),S=j(!0),C=j(!0,!0),_={};function j(e=!1,t=!1){return function(n,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&o===(e?se:ae).get(n))return n;const a=Object(r["n"])(n);if(a&&Object(r["k"])(_,i))return Reflect.get(_,i,o);const s=Reflect.get(n,i,o),c=Object(r["C"])(i);if(c?E.has(i):"__proto__"===i||"__v_isRef"===i)return s;if(e||O(n,"get",i),t)return s;if(be(s)){const e=!a||!Object(r["r"])(i);return e?s.value:s}return Object(r["u"])(s)?e?de(s):ue(s):s}}["includes","indexOf","lastIndexOf"].forEach(e=>{const t=Array.prototype[e];_[e]=function(...e){const n=ge(this);for(let t=0,i=this.length;t<i;t++)O(n,"get",t+"");const r=t.apply(n,e);return-1===r||!1===r?t.apply(n,e.map(ge)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{const t=Array.prototype[e];_[e]=function(...e){g();const n=t.apply(this,e);return b(),n}});const A=L(),k=L(!0);function L(e=!1){return function(t,n,i,o){const a=t[n];if(!e&&(i=ge(i),!Object(r["n"])(t)&&be(a)&&!be(i)))return a.value=i,!0;const s=Object(r["n"])(t)&&Object(r["r"])(n)?Number(n)<t.length:Object(r["k"])(t,n),c=Reflect.set(t,n,i,o);return t===ge(o)&&(s?Object(r["j"])(i,a)&&x(t,"set",n,i,a):x(t,"add",n,i)),c}}function R(e,t){const n=Object(r["k"])(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&x(e,"delete",t,void 0,i),o}function N(e,t){const n=Reflect.has(e,t);return Object(r["C"])(t)&&E.has(t)||O(e,"has",t),n}function I(e){return O(e,"iterate",s),Reflect.ownKeys(e)}const M={get:w,set:A,deleteProperty:R,has:N,ownKeys:I},D={get:S,set(e,t){return!0},deleteProperty(e,t){return!0}},P=Object(r["h"])({},M,{get:T,set:k}),U=(Object(r["h"])({},D,{get:C}),e=>Object(r["u"])(e)?ue(e):e),F=e=>Object(r["u"])(e)?de(e):e,H=e=>e,B=e=>Reflect.getPrototypeOf(e);function W(e,t,n=!1,r=!1){e=e["__v_raw"];const i=ge(e),o=ge(t);t!==o&&!n&&O(i,"get",t),!n&&O(i,"get",o);const{has:a}=B(i),s=n?F:r?H:U;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void 0}function z(e,t=!1){const n=this["__v_raw"],r=ge(n),i=ge(e);return e!==i&&!t&&O(r,"has",e),!t&&O(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function V(e,t=!1){return e=e["__v_raw"],!t&&O(ge(e),"iterate",s),Reflect.get(e,"size",e)}function G(e){e=ge(e);const t=ge(this),n=B(t),r=n.has.call(t,e),i=t.add(e);return r||x(t,"add",e,e),i}function q(e,t){t=ge(t);const n=ge(this),{has:i,get:o}=B(n);let a=i.call(n,e);a||(e=ge(e),a=i.call(n,e));const s=o.call(n,e),c=n.set(e,t);return a?Object(r["j"])(t,s)&&x(n,"set",e,t,s):x(n,"add",e,t),c}function $(e){const t=ge(this),{has:n,get:r}=B(t);let i=n.call(t,e);i||(e=ge(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,a=t.delete(e);return i&&x(t,"delete",e,void 0,o),a}function K(){const e=ge(this),t=0!==e.size,n=void 0,r=e.clear();return t&&x(e,"clear",void 0,void 0,n),r}function Y(e,t){return function(n,r){const i=this,o=i["__v_raw"],a=ge(o),c=e?F:t?H:U;return!e&&O(a,"iterate",s),o.forEach((e,t)=>n.call(r,c(e),c(t),i))}}function X(e,t,n){return function(...i){const o=this["__v_raw"],a=ge(o),l=Object(r["s"])(a),u="entries"===e||e===Symbol.iterator&&l,f="keys"===e&&l,d=o[e](...i),p=t?F:n?H:U;return!t&&O(a,"iterate",f?c:s),{next(){const{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:u?[p(e[0]),p(e[1])]:p(e),done:t}},[Symbol.iterator](){return this}}}}function Q(e){return function(...t){return"delete"!==e&&this}}const J={get(e){return W(this,e)},get size(){return V(this)},has:z,add:G,set:q,delete:$,clear:K,forEach:Y(!1,!1)},Z={get(e){return W(this,e,!1,!0)},get size(){return V(this)},has:z,add:G,set:q,delete:$,clear:K,forEach:Y(!1,!0)},ee={get(e){return W(this,e,!0)},get size(){return V(this,!0)},has(e){return z.call(this,e,!0)},add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear"),forEach:Y(!0,!1)},te=["keys","values","entries",Symbol.iterator];function ne(e,t){const n=t?Z:e?ee:J;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(Object(r["k"])(n,i)&&i in t?n:t,i,o)}te.forEach(e=>{J[e]=X(e,!1,!1),ee[e]=X(e,!0,!1),Z[e]=X(e,!1,!0)});const re={get:ne(!1,!1)},ie={get:ne(!1,!0)},oe={get:ne(!0,!1)};const ae=new WeakMap,se=new WeakMap;function ce(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function le(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ce(Object(r["M"])(e))}function ue(e){return e&&e["__v_isReadonly"]?e:pe(e,!1,M,re)}function fe(e){return pe(e,!1,P,ie)}function de(e){return pe(e,!0,D,oe)}function pe(e,t,n,i){if(!Object(r["u"])(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=t?se:ae,a=o.get(e);if(a)return a;const s=le(e);if(0===s)return e;const c=new Proxy(e,2===s?i:n);return o.set(e,c),c}function he(e){return me(e)?he(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function me(e){return!(!e||!e["__v_isReadonly"])}function ve(e){return he(e)||me(e)}function ge(e){return e&&ge(e["__v_raw"])||e}function be(e){return Boolean(e&&!0===e.__v_isRef)}function ye(e){return be(e)?e.value:e}const Oe={get:(e,t,n)=>ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function xe(e){return he(e)?e:new Proxy(e,Oe)}class Ee{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=u(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,x(ge(this),"set","value"))}}),this["__v_isReadonly"]=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),O(ge(this),"get","value"),this._value}set value(e){this._setter(e)}}function we(e){let t,n;return Object(r["o"])(e)?(t=e,n=r["d"]):(t=e.get,n=e.set),new Ee(t,n,Object(r["o"])(e)||!e.set)}function Te(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Ce(o,t,n)}return i}function Se(e,t,n,i){if(Object(r["o"])(e)){const o=Te(e,t,n,i);return o&&Object(r["w"])(o)&&o.catch(e=>{Ce(e,t,n)}),o}const o=[];for(let r=0;r<e.length;r++)o.push(Se(e[r],t,n,i));return o}function Ce(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,o=n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void Te(a,null,10,[e,i,o])}_e(e,n,i,r)}function _e(e,t,n,r=!0){console.error(e)}let je=!1,Ae=!1;const ke=[];let Le=0;const Re=[];let Ne=null,Ie=0;const Me=[];let De=null,Pe=0;const Ue=Promise.resolve();let Fe=null,He=null;function Be(e){const t=Fe||Ue;return e?t.then(e):t}function We(e){ke.length&&ke.includes(e,je&&e.allowRecurse?Le+1:Le)||e===He||(ke.push(e),ze())}function ze(){je||Ae||(Ae=!0,Fe=Ue.then(Qe))}function Ve(e){const t=ke.indexOf(e);t>-1&&(ke[t]=null)}function Ge(e,t,n,i){Object(r["n"])(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),ze()}function qe(e){Ge(e,Ne,Re,Ie)}function $e(e){Ge(e,De,Me,Pe)}function Ke(e,t=null){if(Re.length){for(He=t,Ne=[...new Set(Re)],Re.length=0,Ie=0;Ie<Ne.length;Ie++)Ne[Ie]();Ne=null,Ie=0,He=null,Ke(e,t)}}function Ye(e){if(Me.length){const e=[...new Set(Me)];if(Me.length=0,De)return void De.push(...e);for(De=e,De.sort((e,t)=>Xe(e)-Xe(t)),Pe=0;Pe<De.length;Pe++)De[Pe]();De=null,Pe=0}}const Xe=e=>null==e.id?1/0:e.id;function Qe(e){Ae=!1,je=!0,Ke(e),ke.sort((e,t)=>Xe(e)-Xe(t));try{for(Le=0;Le<ke.length;Le++){const e=ke[Le];e&&Te(e,null,14)}}finally{Le=0,ke.length=0,Ye(e),je=!1,Fe=null,(ke.length||Me.length)&&Qe(e)}}new Set;new Map;function Je(e,t,...n){const i=e.vnode.props||r["b"];let o="on"+Object(r["f"])(t),a=i[o];if(!a&&t.startsWith("update:")&&(o="on"+Object(r["f"])(Object(r["l"])(t)),a=i[o]),!a)if(a=i[o+"Once"],e.emitted){if(e.emitted[o])return}else(e.emitted={})[o]=!0;a&&Se(a,e,6,n)}function Ze(e,t,n=!1){const i=t.app?t.app._uid:-1,o=e.__emits||(e.__emits={}),a=o[i];if(void 0!==a)return a;const s=e.emits;let c={},l=!1;if(!Object(r["o"])(e)){const i=e=>{l=!0,Object(r["h"])(c,Ze(e,t,!0))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return s||l?(Object(r["n"])(s)?s.forEach(e=>c[e]=null):Object(r["h"])(c,s),o[i]=c):o[i]=null}function et(e,t){return!(!e||!Object(r["v"])(t))&&(t=t.replace(/Once$/,""),Object(r["k"])(e,t[2].toLowerCase()+t.slice(3))||Object(r["k"])(e,t.slice(2)))}let tt=null;function nt(e){tt=e}function rt(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[s],slots:c,attrs:l,emit:u,render:f,renderCache:d,data:p,setupState:h,ctx:m}=e;let v;tt=e;try{let e;if(4&n.shapeFlag){const t=o||i;v=qt(f.call(t,t,d,a,h,p,m)),e=l}else{const n=t;0,v=qt(n.length>1?n(a,{attrs:l,slots:c,emit:u}):n(a,null)),e=t.props?l:ot(l)}let g=v;if(!1!==t.inheritAttrs&&e){const t=Object.keys(e),{shapeFlag:n}=g;t.length&&(1&n||6&n)&&(s&&t.some(r["t"])&&(e=at(e,s)),g=Wt(g,e))}n.dirs&&(g.dirs=n.dirs),n.transition&&(g.transition=n.transition),v=g}catch(g){Ce(g,e,1),v=Ht(_t)}return tt=null,v}function it(e){const t=e.filter(e=>!(Mt(e)&&e.type===_t&&"v-if"!==e.children));return 1===t.length&&Mt(t[0])?t[0]:null}const ot=e=>{let t;for(const n in e)("class"===n||"style"===n||Object(r["v"])(n))&&((t||(t={}))[n]=e[n]);return t},at=(e,t)=>{const n={};for(const i in e)Object(r["t"])(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function st(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||ct(r,a,l):!!a);if(1024&c)return!0;if(16&c)return r?ct(r,a,l):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!et(l,n))return!0}}return!1}function ct(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!et(n,o))return!0}return!1}function lt({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const ut=e=>e.__isSuspense;function ft(e){const{shapeFlag:t,children:n}=e;let r,i;return 32&t?(r=dt(n.default),i=dt(n.fallback)):(r=dt(n),i=qt(null)),{content:r,fallback:i}}function dt(e){if(Object(r["o"])(e)&&(e=e()),Object(r["n"])(e)){const t=it(e);0,e=t}return qt(e)}function pt(e,t){t&&t.pendingBranch?Object(r["n"])(e)?t.effects.push(...e):t.effects.push(e):$e(e)}let ht=0;const mt=e=>ht+=e;function vt(e,t,n={},r){let i=e[t];ht++;const o=(Lt(),It(St,{key:n.key},i?i(n):r?r():[],1===e._?64:-2));return ht--,o}function gt(e,t=tt){if(!t)return e;const n=(...n)=>{ht||Lt(!0);const r=tt;nt(t);const i=e(...n);return nt(r),ht||Rt(),i};return n._c=!0,n}let bt=null;const yt=e=>e.__isTeleport;const Ot="components";function xt(e){return wt(Ot,e)||e}const Et=Symbol();function wt(e,t,n=!0){const i=tt||Cr;if(i){const n=i.type;if(e===Ot){const e=n.displayName||n.name;if(e&&(e===t||e===Object(r["e"])(t)||e===Object(r["f"])(Object(r["e"])(t))))return n}const o=Tt(i[e]||n[e],t)||Tt(i.appContext[e],t);return o}}function Tt(e,t){return e&&(e[t]||e[Object(r["e"])(t)]||e[Object(r["f"])(Object(r["e"])(t))])}const St=Symbol(void 0),Ct=Symbol(void 0),_t=Symbol(void 0),jt=Symbol(void 0),At=[];let kt=null;function Lt(e=!1){At.push(kt=e?null:[])}function Rt(){At.pop(),kt=At[At.length-1]||null}let Nt=1;function It(e,t,n,i,o){const a=Ht(e,t,n,i,o,!0);return a.dynamicChildren=kt||r["a"],Rt(),Nt>0&&kt&&kt.push(a),a}function Mt(e){return!!e&&!0===e.__v_isVNode}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Pt="__vInternal",Ut=({key:e})=>null!=e?e:null,Ft=({ref:e})=>null!=e?Object(r["n"])(e)?e:{i:tt,r:e}:null,Ht=Bt;function Bt(e,t=null,n=null,i=0,o=null,a=!1){if(e&&e!==Et||(e=_t),Mt(e)){const r=Wt(e,t,!0);return n&&Kt(r,n),r}if(Pr(e)&&(e=e.__vccOpts),t){(ve(t)||Pt in t)&&(t=Object(r["h"])({},t));let{class:e,style:n}=t;e&&!Object(r["B"])(e)&&(t.class=Object(r["H"])(e)),Object(r["u"])(n)&&(ve(n)&&!Object(r["n"])(n)&&(n=Object(r["h"])({},n)),t.style=Object(r["I"])(n))}const s=Object(r["B"])(e)?1:ut(e)?128:yt(e)?64:Object(r["u"])(e)?4:Object(r["o"])(e)?2:0;const c={__v_isVNode:!0,["__v_skip"]:!0,type:e,props:t,key:t&&Ut(t),ref:t&&Ft(t),scopeId:bt,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};if(Kt(c,n),128&s){const{content:e,fallback:t}=ft(c);c.ssContent=e,c.ssFallback=t}return Nt>0&&!a&&kt&&(i>0||6&s)&&32!==i&&kt.push(c),c}function Wt(e,t,n=!1){const{props:i,ref:o,patchFlag:a}=e,s=t?Yt(i||{},t):i;return{__v_isVNode:!0,["__v_skip"]:!0,type:e.type,props:s,key:s&&Ut(s),ref:t&&t.ref?n&&o?Object(r["n"])(o)?o.concat(Ft(t)):[o,Ft(t)]:Ft(t):o,scopeId:e.scopeId,children:e.children,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==St?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor}}function zt(e=" ",t=0){return Ht(Ct,null,e,t)}function Vt(e,t){const n=Ht(jt,null,e);return n.staticCount=t,n}function Gt(e="",t=!1){return t?(Lt(),It(_t,null,e)):Ht(_t,null,e)}function qt(e){return null==e||"boolean"===typeof e?Ht(_t):Object(r["n"])(e)?Ht(St,null,e):"object"===typeof e?null===e.el?e:Wt(e):Ht(Ct,null,String(e))}function $t(e){return null===e.el?e:Wt(e)}function Kt(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(Object(r["n"])(t))n=16;else if("object"===typeof t){if(1&i||64&i){const n=t.default;return void(n&&(n._c&&mt(1),Kt(e,n()),n._c&&mt(-1)))}{n=32;const r=t._;r||Pt in t?3===r&&tt&&(1024&tt.vnode.patchFlag?(t._=2,e.patchFlag|=1024):t._=1):t._ctx=tt}}else Object(r["o"])(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),64&i?(n=16,t=[zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yt(...e){const t=Object(r["h"])({},e[0]);for(let n=1;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=Object(r["H"])([t.class,i.class]));else if("style"===e)t.style=Object(r["I"])([t.style,i.style]);else if(Object(r["v"])(e)){const n=t[e],r=i[e];n!==r&&(t[e]=n?[].concat(n,i[e]):r)}else t[e]=i[e]}return t}function Xt(e,t,n,i=!1){const o={},a={};Object(r["g"])(a,Pt,1),Jt(e,t,o,a),n?e.props=i?o:fe(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function Qt(e,t,n,i){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,c=ge(o),[l]=e.propsOptions;if(!(i||s>0)||16&s){let i;Jt(e,t,o,a);for(const a in c)t&&(Object(r["k"])(t,a)||(i=Object(r["l"])(a))!==a&&Object(r["k"])(t,i))||(l?!n||void 0===n[a]&&void 0===n[i]||(o[a]=Zt(l,t||r["b"],a,void 0,e)):delete o[a]);if(a!==c)for(const e in a)t&&Object(r["k"])(t,e)||delete a[e]}else if(8&s){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){const s=n[i],u=t[s];if(l)if(Object(r["k"])(a,s))a[s]=u;else{const t=Object(r["e"])(s);o[t]=Zt(l,c,t,u,e)}else a[s]=u}}x(e,"set","$attrs")}function Jt(e,t,n,i){const[o,a]=e.propsOptions;if(t)for(const s in t){const a=t[s];if(Object(r["x"])(s))continue;let c;o&&Object(r["k"])(o,c=Object(r["e"])(s))?n[c]=a:et(e.emitsOptions,s)||(i[s]=a)}if(a){const t=ge(n);for(let r=0;r<a.length;r++){const i=a[r];n[i]=Zt(o,t,i,t[i],e)}}}function Zt(e,t,n,i,o){const a=e[n];if(null!=a){const e=Object(r["k"])(a,"default");if(e&&void 0===i){const e=a.default;a.type!==Function&&Object(r["o"])(e)?(jr(o),i=e(t),jr(null)):i=e}a[0]&&(Object(r["k"])(t,n)||e?!a[1]||""!==i&&i!==Object(r["l"])(n)||(i=!0):i=!1)}return i}function en(e,t,n=!1){const i=t.app?t.app._uid:-1,o=e.__props||(e.__props={}),a=o[i];if(a)return a;const s=e.props,c={},l=[];let u=!1;if(!Object(r["o"])(e)){const i=e=>{u=!0;const[n,i]=en(e,t,!0);Object(r["h"])(c,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!s&&!u)return o[i]=r["a"];if(Object(r["n"])(s))for(let f=0;f<s.length;f++){0;const e=Object(r["e"])(s[f]);on(e)&&(c[e]=r["b"])}else if(s){0;for(const e in s){const t=Object(r["e"])(e);if(on(t)){const n=s[e],i=c[t]=Object(r["n"])(n)||Object(r["o"])(n)?{type:n}:n;if(i){const e=rn(Boolean,i.type),n=rn(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||Object(r["k"])(i,"default"))&&l.push(t)}}}}return o[i]=[c,l]}function tn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function nn(e,t){return tn(e)===tn(t)}function rn(e,t){if(Object(r["n"])(t)){for(let n=0,r=t.length;n<r;n++)if(nn(t[n],e))return n}else if(Object(r["o"])(t))return nn(t,e)?0:-1;return-1}function on(e){return"$"!==e[0]}function an(e,t,n=Cr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;g(),jr(n);const i=Se(t,n,e,r);return jr(null),y(),i});return r?i.unshift(o):i.push(o),o}}const sn=e=>(t,n=Cr)=>!kr&&an(e,t,n),cn=sn("bm"),ln=sn("m"),un=sn("bu"),fn=sn("u"),dn=sn("bum"),pn=sn("um"),hn=sn("rtg"),mn=sn("rtc"),vn=(e,t=Cr)=>{an("ec",e,t)};function gn(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ln(()=>{e.isMounted=!0}),dn(()=>{e.isUnmounting=!0}),e}const bn=[Function,Array],yn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bn,onEnter:bn,onAfterEnter:bn,onEnterCancelled:bn,onBeforeLeave:bn,onLeave:bn,onAfterLeave:bn,onLeaveCancelled:bn,onBeforeAppear:bn,onAppear:bn,onAfterAppear:bn,onAppearCancelled:bn},setup(e,{slots:t}){const n=_r(),r=gn();let i;return()=>{const o=t.default&&Cn(t.default(),!0);if(!o||!o.length)return;const a=ge(e),{mode:s}=a;const c=o[0];if(r.isLeaving)return wn(c);const l=Tn(c);if(!l)return wn(c);const u=En(l,a,r,n);Sn(l,u);const f=n.subTree,d=f&&Tn(f);let p=!1;const{getTransitionKey:h}=l.type;if(h){const e=h();void 0===i?i=e:e!==i&&(i=e,p=!0)}if(d&&d.type!==_t&&(!Dt(l,d)||p)){const e=En(d,a,r,n);if(Sn(d,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},wn(c);"in-out"===s&&(e.delayLeave=(e,t,n)=>{const i=xn(r,d);i[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return c}}},On=yn;function xn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function En(e,t,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:g,onAppearCancelled:b}=t,y=String(e.key),O=xn(n,e),x=(e,t)=>{e&&Se(e,r,9,t)},E={mode:o,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const o=O[y];o&&Dt(e,o)&&o.el._leaveCb&&o.el._leaveCb(),x(r,[t])},enter(e){let t=c,r=l,o=u;if(!n.isMounted){if(!i)return;t=v||c,r=g||l,o=b||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,x(t?o:r,[e]),E.delayedLeave&&E.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();x(f,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),x(n?h:p,[t]),t._leaveCb=void 0,O[i]===e&&delete O[i])};O[i]=e,d?(d(t,a),d.length<=1&&a()):a()},clone(e){return En(e,t,n,r)}};return E}function wn(e){if(_n(e))return e=Wt(e),e.children=null,e}function Tn(e){return _n(e)?e.children?e.children[0]:void 0:e}function Sn(e,t){6&e.shapeFlag&&e.component?Sn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cn(e,t=!1){let n=[],r=0;for(let i=0;i<e.length;i++){const o=e[i];o.type===St?(128&o.patchFlag&&r++,n=n.concat(Cn(o.children,t))):(t||o.type!==_t)&&n.push(o)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}const _n=e=>e.type.__isKeepAlive;RegExp,RegExp;function jn(e){return e.displayName||e.name}function An(e,t){return Object(r["n"])(e)?e.some(e=>An(e,t)):Object(r["B"])(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function kn(e,t){Rn(e,"a",t)}function Ln(e,t){Rn(e,"da",t)}function Rn(e,t,n=Cr){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}e()});if(an(t,r,n),n){let e=n.parent;while(e&&e.parent)_n(e.parent.vnode)&&Nn(r,t,n,e),e=e.parent}}function Nn(e,t,n,i){const o=an(t,e,i,!0);pn(()=>{Object(r["J"])(i[t],o)},n)}function In(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Mn(e){return 128&e.shapeFlag?e.ssContent:e}const Dn=e=>"_"===e[0]||"$stable"===e,Pn=e=>Object(r["n"])(e)?e.map(qt):[qt(e)],Un=(e,t,n)=>gt(e=>Pn(t(e)),n),Fn=(e,t)=>{const n=e._ctx;for(const i in e){if(Dn(i))continue;const o=e[i];if(Object(r["o"])(o))t[i]=Un(i,o,n);else if(null!=o){0;const e=Pn(o);t[i]=()=>e}}},Hn=(e,t)=>{const n=Pn(t);e.slots.default=()=>n},Bn=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=t,Object(r["g"])(t,"_",n)):Fn(t,e.slots={})}else e.slots={},t&&Hn(e,t);Object(r["g"])(e.slots,Pt,1)},Wn=(e,t)=>{const{vnode:n,slots:i}=e;let o=!0,a=r["b"];if(32&n.shapeFlag){const e=t._;e?1===e?o=!1:Object(r["h"])(i,t):(o=!t.$stable,Fn(t,i)),a=t}else t&&(Hn(e,t),a={default:1});if(o)for(const r in i)Dn(r)||r in a||delete i[r]};function zn(e,t){const n=tt;if(null===n)return e;const i=n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,n,s,c=r["b"]]=t[a];Object(r["o"])(e)&&(e={mounted:e,updated:e}),o.push({dir:e,instance:i,value:n,oldValue:void 0,arg:s,modifiers:c})}return e}function Vn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);const c=s.dir[r];c&&Se(c,n,8,[e.el,s,e,t])}}function Gn(){return{app:null,config:{isNativeTag:r["c"],performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:r["c"],errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}let qn=0;function $n(e,t){return function(n,i=null){null==i||Object(r["u"])(i)||(i=null);const o=Gn(),a=new Set;let s=!1;const c=o.app={_uid:qn++,_component:n,_props:i,_container:null,_context:o,version:Br,get config(){return o.config},set config(e){0},use(e,...t){return a.has(e)||(e&&Object(r["o"])(e.install)?(a.add(e),e.install(c,...t)):Object(r["o"])(e)&&(a.add(e),e(c,...t))),c},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),c},component(e,t){return t?(o.components[e]=t,c):o.components[e]},directive(e,t){return t?(o.directives[e]=t,c):o.directives[e]},mount(r,a){if(!s){const l=Ht(n,i);return l.appContext=o,a&&t?t(l,r):e(l,r),s=!0,c._container=r,r.__vue_app__=c,l.component.proxy}},unmount(){s&&e(null,c._container)},provide(e,t){return o.provides[e]=t,c}};return c}}function Kn(){}const Yn={scheduler:We,allowRecurse:!0};const Xn=pt,Qn=(e,t,n,i,o)=>{if(Object(r["n"])(e))return void e.forEach((e,a)=>Qn(e,t&&(Object(r["n"])(t)?t[a]:t),n,i,o));let a;a=o?4&o.shapeFlag?o.component.proxy:o.el:null;const{i:s,r:c}=e;const l=t&&t.r,u=s.refs===r["b"]?s.refs={}:s.refs,f=s.setupState;if(null!=l&&l!==c&&(Object(r["B"])(l)?(u[l]=null,Object(r["k"])(f,l)&&(f[l]=null)):be(l)&&(l.value=null)),Object(r["B"])(c)){const e=()=>{u[c]=a,Object(r["k"])(f,c)&&(f[c]=a)};a?(e.id=-1,Xn(e,i)):e()}else if(be(c)){const e=()=>{c.value=a};a?(e.id=-1,Xn(e,i)):e()}else Object(r["o"])(c)&&Te(c,n,12,[a,u])};function Jn(e){return Zn(e)}function Zn(e,t){Kn();const{insert:n,remove:i,patchProp:o,forcePatchProp:a,createElement:s,createText:c,createComment:l,setText:d,setElementText:p,parentNode:h,nextSibling:m,setScopeId:v=r["d"],cloneNode:g,insertStaticContent:b}=e,y=(e,t,n,r=null,i=null,o=null,a=!1,s=!1)=>{e&&!Dt(e,t)&&(r=G(e),H(e,i,o,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:l,shapeFlag:u}=t;switch(c){case Ct:O(e,t,n,r);break;case _t:x(e,t,n,r);break;case jt:null==e&&E(t,n,r,a);break;case St:k(e,t,n,r,i,o,a,s);break;default:1&u?w(e,t,n,r,i,o,a,s):6&u?L(e,t,n,r,i,o,a,s):(64&u||128&u)&&c.process(e,t,n,r,i,o,a,s,K)}null!=l&&i&&Qn(l,e&&e.ref,i,o,t)},O=(e,t,r,i)=>{if(null==e)n(t.el=c(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},x=(e,t,r,i)=>{null==e?n(t.el=l(t.children||""),r,i):t.el=e.el},E=(e,t,n,r)=>{[e.el,e.anchor]=b(e.children,t,n,r)},w=(e,t,n,r,i,o,a,s)=>{a=a||"svg"===t.type,null==e?T(t,n,r,i,o,a,s):_(e,t,i,o,a,s)},T=(e,t,i,a,c,l,u)=>{let f,d;const{type:h,props:m,shapeFlag:v,transition:b,scopeId:y,patchFlag:O,dirs:x}=e;if(e.el&&void 0!==g&&-1===O)f=e.el=g(e.el);else{if(f=e.el=s(e.type,l,m&&m.is),8&v?p(f,e.children):16&v&&C(e.children,f,null,a,c,l&&"foreignObject"!==h,u||!!e.dynamicChildren),x&&Vn(e,null,a,"created"),m){for(const t in m)Object(r["x"])(t)||o(f,t,null,m[t],l,e.children,a,c,V);(d=m.onVnodeBeforeMount)&&er(d,a,e)}S(f,y,e,a)}x&&Vn(e,null,a,"beforeMount");const E=(!c||c&&!c.pendingBranch)&&b&&!b.persisted;E&&b.beforeEnter(f),n(f,t,i),((d=m&&m.onVnodeMounted)||E||x)&&Xn(()=>{d&&er(d,a,e),E&&b.enter(f),x&&Vn(e,null,a,"mounted")},c)},S=(e,t,n,r)=>{if(t&&v(e,t),r){const i=r.type.__scopeId;i&&i!==t&&v(e,i+"-s");let o=r.subTree;0,n===o&&S(e,r.vnode.scopeId,r.vnode,r.parent)}},C=(e,t,n,r,i,o,a,s=0)=>{for(let c=s;c<e.length;c++){const s=e[c]=a?$t(e[c]):qt(e[c]);y(null,s,t,n,r,i,o,a)}},_=(e,t,n,i,s,c)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||r["b"],m=t.props||r["b"];let v;if((v=m.onVnodeBeforeUpdate)&&er(v,n,t,e),d&&Vn(t,e,n,"beforeUpdate"),u>0){if(16&u)A(l,t,h,m,n,i,s);else if(2&u&&h.class!==m.class&&o(l,"class",null,m.class,s),4&u&&o(l,"style",h.style,m.style,s),8&u){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const c=r[t],u=h[c],f=m[c];(f!==u||a&&a(l,c))&&o(l,c,u,f,s,e.children,n,i,V)}}1&u&&e.children!==t.children&&p(l,t.children)}else c||null!=f||A(l,t,h,m,n,i,s);const g=s&&"foreignObject"!==t.type;f?j(e.dynamicChildren,f,l,n,i,g):c||D(e,t,l,null,n,i,g),((v=m.onVnodeUpdated)||d)&&Xn(()=>{v&&er(v,n,t,e),d&&Vn(t,e,n,"updated")},i)},j=(e,t,n,r,i,o)=>{for(let a=0;a<t.length;a++){const s=e[a],c=t[a],l=s.type===St||!Dt(s,c)||6&s.shapeFlag||64&s.shapeFlag?h(s.el):n;y(s,c,l,null,r,i,o,!0)}},A=(e,t,n,i,s,c,l)=>{if(n!==i){for(const u in i){if(Object(r["x"])(u))continue;const f=i[u],d=n[u];(f!==d||a&&a(e,u))&&o(e,u,d,f,l,t.children,s,c,V)}if(n!==r["b"])for(const a in n)Object(r["x"])(a)||a in i||o(e,a,n[a],null,l,t.children,s,c,V)}},k=(e,t,r,i,o,a,s,l)=>{const u=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:d,dynamicChildren:p}=t;d>0&&(l=!0),null==e?(n(u,r,i),n(f,r,i),C(t.children,r,f,o,a,s,l)):d>0&&64&d&&p?(j(e.dynamicChildren,p,r,o,a,s),(null!=t.key||o&&t===o.subTree)&&q(e,t,!0)):D(e,t,r,f,o,a,s,l)},L=(e,t,n,r,i,o,a,s)=>{null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,s):R(t,n,r,i,o,a,s):N(e,t,s)},R=(e,t,n,r,i,o,a)=>{const s=e.component=Sr(e,r,i);if(_n(e)&&(s.ctx.renderer=K),Lr(s),s.asyncDep){if(i&&i.registerDep(s,I),!e.el){const e=s.subTree=Ht(_t);x(null,e,t,n)}}else I(s,e,t,n,i,o,a)},N=(e,t,n)=>{const r=t.component=e.component;if(st(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,Ve(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},I=(e,t,n,i,o,a,s)=>{e.update=u((function(){if(e.isMounted){let t,{next:n,bu:i,u:c,parent:l,vnode:u}=e,f=n;0,n?M(e,n,s):n=u,n.el=u.el,i&&Object(r["m"])(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&er(t,l,n,u);const d=rt(e);0;const p=e.subTree;e.subTree=d,e.refs!==r["b"]&&(e.refs={}),y(p,d,h(p.el),G(p),e,o,a),n.el=d.el,null===f&&lt(e,d.el),c&&Xn(c,o),(t=n.props&&n.props.onVnodeUpdated)&&Xn(()=>{er(t,l,n,u)},o)}else{let s;const{el:c,props:l}=t,{bm:u,m:f,parent:d}=e;u&&Object(r["m"])(u),(s=l&&l.onVnodeBeforeMount)&&er(s,d,t);const p=e.subTree=rt(e);0,c&&X?X(t.el,p,e,o):(y(null,p,n,i,e,o,a),t.el=p.el),f&&Xn(f,o),(s=l&&l.onVnodeMounted)&&Xn(()=>{er(s,d,t)},o);const{a:h}=e;h&&256&t.shapeFlag&&Xn(h,o),e.isMounted=!0}}),Yn)},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,Qt(e,t.props,r,n),Wn(e,t.children),Ke(void 0,e.update)},D=(e,t,n,r,i,o,a,s=!1)=>{const c=e&&e.children,l=e?e.shapeFlag:0,u=t.children,{patchFlag:f,shapeFlag:d}=t;if(f>0){if(128&f)return void U(c,u,n,r,i,o,a,s);if(256&f)return void P(c,u,n,r,i,o,a,s)}8&d?(16&l&&V(c,i,o),u!==c&&p(n,u)):16&l?16&d?U(c,u,n,r,i,o,a,s):V(c,i,o,!0):(8&l&&p(n,""),16&d&&C(u,n,r,i,o,a,s))},P=(e,t,n,i,o,a,s,c)=>{e=e||r["a"],t=t||r["a"];const l=e.length,u=t.length,f=Math.min(l,u);let d;for(d=0;d<f;d++){const r=t[d]=c?$t(t[d]):qt(t[d]);y(e[d],r,n,null,o,a,s,c)}l>u?V(e,o,a,!0,f):C(t,n,i,o,a,s,c,f)},U=(e,t,n,i,o,a,s,c)=>{let l=0;const u=t.length;let f=e.length-1,d=u-1;while(l<=f&&l<=d){const r=e[l],i=t[l]=c?$t(t[l]):qt(t[l]);if(!Dt(r,i))break;y(r,i,n,null,o,a,s,c),l++}while(l<=f&&l<=d){const r=e[f],i=t[d]=c?$t(t[d]):qt(t[d]);if(!Dt(r,i))break;y(r,i,n,null,o,a,s,c),f--,d--}if(l>f){if(l<=d){const e=d+1,r=e<u?t[e].el:i;while(l<=d)y(null,t[l]=c?$t(t[l]):qt(t[l]),n,r,o,a,s),l++}}else if(l>d)while(l<=f)H(e[l],o,a,!0),l++;else{const p=l,h=l,m=new Map;for(l=h;l<=d;l++){const e=t[l]=c?$t(t[l]):qt(t[l]);null!=e.key&&m.set(e.key,l)}let v,g=0;const b=d-h+1;let O=!1,x=0;const E=new Array(b);for(l=0;l<b;l++)E[l]=0;for(l=p;l<=f;l++){const r=e[l];if(g>=b){H(r,o,a,!0);continue}let i;if(null!=r.key)i=m.get(r.key);else for(v=h;v<=d;v++)if(0===E[v-h]&&Dt(r,t[v])){i=v;break}void 0===i?H(r,o,a,!0):(E[i-h]=l+1,i>=x?x=i:O=!0,y(r,t[i],n,null,o,a,s,c),g++)}const w=O?tr(E):r["a"];for(v=w.length-1,l=b-1;l>=0;l--){const e=h+l,r=t[e],c=e+1<u?t[e+1].el:i;0===E[l]?y(null,r,n,c,o,a,s):O&&(v<0||l!==w[v]?F(r,n,c,2):v--)}}},F=(e,t,r,i,o=null)=>{const{el:a,type:s,transition:c,children:l,shapeFlag:u}=e;if(6&u)return void F(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,K);if(s===St){n(a,t,r);for(let e=0;e<l.length;e++)F(l[e],t,r,i);return void n(e.anchor,t,r)}const f=2!==i&&1&u&&c;if(f)if(0===i)c.beforeEnter(a),n(a,t,r),Xn(()=>c.enter(a),o);else{const{leave:e,delayLeave:i,afterLeave:o}=c,s=()=>n(a,t,r),l=()=>{e(a,()=>{s(),o&&o()})};i?i(a,s,l):l()}else n(a,t,r)},H=(e,t,n,r=!1)=>{const{type:i,props:o,ref:a,children:s,dynamicChildren:c,shapeFlag:l,patchFlag:u,dirs:f}=e;if(null!=a&&t&&Qn(a,null,t,n,null),256&l)return void t.ctx.deactivate(e);const d=1&l&&f;let p;if((p=o&&o.onVnodeBeforeUnmount)&&er(p,t,e),6&l)z(e.component,n,r);else{if(128&l)return void e.suspense.unmount(n,r);d&&Vn(e,null,t,"beforeUnmount"),c&&(i!==St||u>0&&64&u)?V(c,t,n):16&l&&V(s,t,n),64&l&&e.type.remove(e,K),r&&B(e)}((p=o&&o.onVnodeUnmounted)||d)&&Xn(()=>{p&&er(p,t,e),d&&Vn(e,null,t,"unmounted")},n)},B=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===St)return void W(n,r);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},W=(e,t)=>{let n;while(e!==t)n=m(e),i(e),e=n;i(t)},z=(e,t,n)=>{const{bum:i,effects:o,update:a,subTree:s,um:c}=e;if(i&&Object(r["m"])(i),o)for(let r=0;r<o.length;r++)f(o[r]);a&&(f(a),H(s,e,t,n)),c&&Xn(c,t),Xn(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,n,r=!1,i=0)=>{for(let o=i;o<e.length;o++)H(e[o],t,n,r)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),q=(e,t,n=!1)=>{const i=e.children,o=t.children;if(Object(r["n"])(i)&&Object(r["n"])(o))for(let r=0;r<i.length;r++){const e=i[r],t=o[r]=$t(o[r]);1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t.el=e.el),n||q(e,t))}},$=(e,t)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):y(t._vnode||null,e,t),Ye(),t._vnode=e},K={p:y,um:H,m:F,r:B,mt:R,mc:C,pc:D,pbc:j,n:G,o:e};let Y,X;return t&&([Y,X]=t(K)),{render:$,hydrate:Y,createApp:$n($,Y)}}function er(e,t,n,r=null){Se(e,t,7,[n,r])}function tr(e){const t=e.slice(),n=[0];let r,i,o,a,s;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}o=0,a=n.length-1;while(o<a)s=(o+a)/2|0,e[n[s]]<c?o=s+1:a=s;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const nr={};function rr(e,t,n){return ir(e,t,n)}function ir(e,t,{immediate:n,deep:i,flush:o,onTrack:a,onTrigger:s}=r["b"],c=Cr){let l;const d=be(e);if(d?l=()=>e.value:he(e)?(l=()=>e,i=!0):l=Object(r["n"])(e)?()=>e.map(e=>be(e)?e.value:he(e)?ar(e):Object(r["o"])(e)?Te(e,c,2):void 0):Object(r["o"])(e)?t?()=>Te(e,c,2):()=>{if(!c||!c.isUnmounted)return p&&p(),Te(e,c,3,[h])}:r["d"],t&&i){const e=l;l=()=>ar(e())}let p;const h=e=>{p=b.options.onStop=()=>{Te(e,c,4)}};let m=Object(r["n"])(e)?[]:nr;const v=()=>{if(b.active)if(t){const e=b();(i||d||Object(r["j"])(e,m))&&(p&&p(),Se(t,c,3,[e,m===nr?void 0:m,h]),m=e)}else b()};let g;v.allowRecurse=!!t,g="sync"===o?v:"post"===o?()=>Xn(v,c&&c.suspense):()=>{!c||c.isMounted?qe(v):v()};const b=u(l,{lazy:!0,onTrack:a,onTrigger:s,scheduler:g});return Dr(b),t?n?v():m=b():"post"===o?Xn(b,c&&c.suspense):b(),()=>{f(b),c&&Object(r["J"])(c.effects,b)}}function or(e,t,n){const i=this.proxy,o=Object(r["B"])(e)?()=>i[e]:e.bind(i);return ir(o,t.bind(i),n,this)}function ar(e,t=new Set){if(!Object(r["u"])(e)||t.has(e))return e;if(t.add(e),be(e))ar(e.value,t);else if(Object(r["n"])(e))for(let n=0;n<e.length;n++)ar(e[n],t);else if(Object(r["s"])(e))e.forEach((n,r)=>{ar(e.get(r),t)});else if(Object(r["z"])(e))e.forEach(e=>{ar(e,t)});else for(const n in e)ar(e[n],t);return e}function sr(e,t){if(Cr){let n=Cr.provides;const r=Cr.parent&&Cr.parent.provides;r===n&&(n=Cr.provides=Object.create(r)),n[e]=t}else 0}function cr(e,t,n=!1){const i=Cr||tt;if(i){const o=i.provides;if(e in o)return o[e];if(arguments.length>1)return n&&Object(r["o"])(t)?t():t}else 0}let lr=!1;function ur(e,t,n=[],i=[],o=!1){const{mixins:a,extends:s,data:c,computed:l,methods:u,watch:f,provide:d,inject:p,components:h,directives:m,beforeMount:v,mounted:g,beforeUpdate:b,updated:y,activated:O,deactivated:x,beforeDestroy:E,beforeUnmount:w,destroyed:T,unmounted:S,render:C,renderTracked:_,renderTriggered:j,errorCaptured:A}=t,k=e.proxy,L=e.ctx,R=e.appContext.mixins;o&&C&&e.render===r["d"]&&(e.render=C),o||(lr=!0,fr("beforeCreate",t,k,R),lr=!1,hr(e,R,n,i)),s&&ur(e,s,n,i,!0),a&&hr(e,a,n,i);if(p)if(Object(r["n"])(p))for(let r=0;r<p.length;r++){const e=p[r];L[e]=cr(e)}else for(const N in p){const e=p[N];Object(r["u"])(e)?L[N]=cr(e.from||N,e.default,!0):L[N]=cr(e)}if(u)for(const N in u){const e=u[N];Object(r["o"])(e)&&(L[N]=e.bind(k))}if(o?c&&n.push(c):(n.length&&n.forEach(t=>mr(e,t,k)),c&&mr(e,c,k)),l)for(const N in l){const e=l[N],t=Object(r["o"])(e)?e.bind(k,k):Object(r["o"])(e.get)?e.get.bind(k,k):r["d"];0;const n=!Object(r["o"])(e)&&Object(r["o"])(e.set)?e.set.bind(k):r["d"],i=Ur({get:t,set:n});Object.defineProperty(L,N,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(f&&i.push(f),!o&&i.length&&i.forEach(e=>{for(const t in e)vr(e[t],L,k,t)}),d){const e=Object(r["o"])(d)?d.call(k):d;for(const t in e)sr(t,e[t])}o&&(h&&Object(r["h"])(e.components||(e.components=Object(r["h"])({},e.type.components)),h),m&&Object(r["h"])(e.directives||(e.directives=Object(r["h"])({},e.type.directives)),m)),o||fr("created",t,k,R),v&&cn(v.bind(k)),g&&ln(g.bind(k)),b&&un(b.bind(k)),y&&fn(y.bind(k)),O&&kn(O.bind(k)),x&&Ln(x.bind(k)),A&&vn(A.bind(k)),_&&mn(_.bind(k)),j&&hn(j.bind(k)),w&&dn(w.bind(k)),S&&pn(S.bind(k))}function fr(e,t,n,r){pr(e,r,n);const{extends:i,mixins:o}=t;i&&dr(e,i,n),o&&pr(e,o,n);const a=t[e];a&&a.call(n)}function dr(e,t,n){t.extends&&dr(e,t.extends,n);const r=t[e];r&&r.call(n)}function pr(e,t,n){for(let r=0;r<t.length;r++){const i=t[r].mixins;i&&pr(e,i,n);const o=t[r][e];o&&o.call(n)}}function hr(e,t,n,r){for(let i=0;i<t.length;i++)ur(e,t[i],n,r,!0)}function mr(e,t,n){const i=t.call(n,n);Object(r["u"])(i)&&(e.data===r["b"]?e.data=ue(i):Object(r["h"])(e.data,i))}function vr(e,t,n,i){const o=i.includes(".")?gr(n,i):()=>n[i];if(Object(r["B"])(e)){const n=t[e];Object(r["o"])(n)&&rr(o,n)}else if(Object(r["o"])(e))rr(o,e.bind(n));else if(Object(r["u"])(e))if(Object(r["n"])(e))e.forEach(e=>vr(e,t,n,i));else{const i=Object(r["o"])(e.handler)?e.handler.bind(n):t[e.handler];Object(r["o"])(i)&&rr(o,i,e)}else 0}function gr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function br(e){const t=e.type,{__merged:n,mixins:r,extends:i}=t;if(n)return n;const o=e.appContext.mixins;if(!o.length&&!r&&!i)return t;const a={};return o.forEach(t=>yr(a,t,e)),yr(a,t,e),t.__merged=a}function yr(e,t,n){const i=n.appContext.config.optionMergeStrategies,{mixins:o,extends:a}=t;a&&yr(e,a,n),o&&o.forEach(t=>yr(e,t,n));for(const s in t)i&&Object(r["k"])(i,s)?e[s]=i[s](e[s],t[s],n.proxy,s):e[s]=t[s]}const Or=Object(r["h"])(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>e.parent&&e.parent.proxy,$root:e=>e.root&&e.root.proxy,$emit:e=>e.emit,$options:e=>br(e),$forceUpdate:e=>()=>We(e.update),$nextTick:()=>Be,$watch:e=>or.bind(e)}),xr={get({_:e},t){const{ctx:n,setupState:i,data:o,props:a,accessCache:s,type:c,appContext:l}=e;if("__v_skip"===t)return!0;let u;if("$"!==t[0]){const c=s[t];if(void 0!==c)switch(c){case 0:return i[t];case 1:return o[t];case 3:return n[t];case 2:return a[t]}else{if(i!==r["b"]&&Object(r["k"])(i,t))return s[t]=0,i[t];if(o!==r["b"]&&Object(r["k"])(o,t))return s[t]=1,o[t];if((u=e.propsOptions[0])&&Object(r["k"])(u,t))return s[t]=2,a[t];if(n!==r["b"]&&Object(r["k"])(n,t))return s[t]=3,n[t];lr||(s[t]=4)}}const f=Or[t];let d,p;return f?("$attrs"===t&&O(e,"get",t),f(e)):(d=c.__cssModules)&&(d=d[t])?d:n!==r["b"]&&Object(r["k"])(n,t)?(s[t]=3,n[t]):(p=l.config.globalProperties,Object(r["k"])(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;if(o!==r["b"]&&Object(r["k"])(o,t))o[t]=n;else if(i!==r["b"]&&Object(r["k"])(i,t))i[t]=n;else if(t in e.props)return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let c;return void 0!==n[s]||e!==r["b"]&&Object(r["k"])(e,s)||t!==r["b"]&&Object(r["k"])(t,s)||(c=a[0])&&Object(r["k"])(c,s)||Object(r["k"])(i,s)||Object(r["k"])(Or,s)||Object(r["k"])(o.config.globalProperties,s)}};const Er=Object(r["h"])({},xr,{get(e,t){if(t!==Symbol.unscopables)return xr.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!Object(r["p"])(t);return n}});const wr=Gn();let Tr=0;function Sr(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||wr,a={uid:Tr++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,update:null,render:null,proxy:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:en(i,o),emitsOptions:Ze(i,o),emit:null,emitted:null,ctx:r["b"],data:r["b"],props:r["b"],attrs:r["b"],slots:r["b"],refs:r["b"],setupState:r["b"],setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Je.bind(null,a),a}let Cr=null;const _r=()=>Cr||tt,jr=e=>{Cr=e};let Ar,kr=!1;function Lr(e,t=!1){kr=t;const{props:n,children:r,shapeFlag:i}=e.vnode,o=4&i;Xt(e,n,o,t),Bn(e,r);const a=o?Rr(e,t):void 0;return kr=!1,a}function Rr(e,t){const n=e.type;e.accessCache={},e.proxy=new Proxy(e.ctx,xr);const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Mr(e):null;Cr=e,g();const o=Te(i,e,0,[e.props,n]);if(y(),Cr=null,Object(r["w"])(o)){if(t)return o.then(t=>{Nr(e,t)});e.asyncDep=o}else Nr(e,o)}else Ir(e)}function Nr(e,t,n){Object(r["o"])(t)?e.render=t:Object(r["u"])(t)&&(e.setupState=xe(t)),Ir(e)}function Ir(e,t){const n=e.type;e.render||(Ar&&n.template&&!n.render&&(n.render=Ar(n.template,{isCustomElement:e.appContext.config.isCustomElement,delimiters:n.delimiters})),e.render=n.render||r["d"],e.render._rc&&(e.withProxy=new Proxy(e.ctx,Er))),Cr=e,ur(e,n),Cr=null}function Mr(e){return{attrs:e.attrs,slots:e.slots,emit:e.emit}}function Dr(e){Cr&&(Cr.effects||(Cr.effects=[])).push(e)}function Pr(e){return Object(r["o"])(e)&&"__vccOpts"in e}function Ur(e){const t=we(e);return Dr(t.effect),t}function Fr(e,t,n){const i=arguments.length;return 2===i?Object(r["u"])(t)&&!Object(r["n"])(t)?Mt(t)?Ht(e,null,[t]):Ht(e,t):Ht(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Mt(n)&&(n=[n]),Ht(e,t,n))}Symbol("");function Hr(e,t){let n;if(Object(r["n"])(e)||Object(r["B"])(e)){n=new Array(e.length);for(let r=0,i=e.length;r<i;r++)n[r]=t(e[r],r)}else if("number"===typeof e){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r)}else if(Object(r["u"])(e))if(e[Symbol.iterator])n=Array.from(e,t);else{const r=Object.keys(e);n=new Array(r.length);for(let i=0,o=r.length;i<o;i++){const o=r[i];n[i]=t(e[o],o,i)}}else n=[];return n}const Br="3.0.0",Wr="http://www.w3.org/2000/svg",zr="undefined"!==typeof document?document:null;let Vr,Gr;const qr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n)=>t?zr.createElementNS(Wr,e):zr.createElement(e,n?{is:n}:void 0),createText:e=>zr.createTextNode(e),createComment:e=>zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){return e.cloneNode(!0)},insertStaticContent(e,t,n,r){const i=r?Gr||(Gr=zr.createElementNS(Wr,"svg")):Vr||(Vr=zr.createElement("div"));i.innerHTML=e;const o=i.firstChild;let a=o,s=a;while(a)s=a,qr.insert(a,t,n),a=i.firstChild;return[o,s]}};function $r(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),e.className=t}}function Kr(e,t,n){const i=e.style;if(n)if(Object(r["B"])(n))t!==n&&(i.cssText=n);else{for(const e in n)Xr(i,e,n[e]);if(t&&!Object(r["B"])(t))for(const e in t)null==n[e]&&Xr(i,e,"")}else e.removeAttribute("style")}const Yr=/\s*!important$/;function Xr(e,t,n){if(Object(r["n"])(n))n.forEach(n=>Xr(e,t,n));else if(t.startsWith("--"))e.setProperty(t,n);else{const i=Zr(e,t);Yr.test(n)?e.setProperty(Object(r["l"])(i),n.replace(Yr,""),"important"):e[i]=n}}const Qr=["Webkit","Moz","ms"],Jr={};function Zr(e,t){const n=Jr[t];if(n)return n;let i=Object(r["e"])(t);if("filter"!==i&&i in e)return Jr[t]=i;i=Object(r["f"])(i);for(let r=0;r<Qr.length;r++){const n=Qr[r]+i;if(n in e)return Jr[t]=n}return t}const ei="http://www.w3.org/1999/xlink";function ti(e,t,n,i){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ei,t.slice(6,t.length)):e.setAttributeNS(ei,t,n);else{const i=Object(r["A"])(t);null==n||i&&!1===n?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function ni(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);if("value"!==t||"PROGRESS"===e.tagName)if(""===n&&"boolean"===typeof e[t])e[t]=!0;else if(null==n&&"string"===typeof e[t])e[t]="",e.removeAttribute(t);else try{e[t]=n}catch(s){0}else{e._value=n;const t=null==n?"":n;e.value!==t&&(e.value=t)}}let ri=Date.now;"undefined"!==typeof document&&ri()>document.createEvent("Event").timeStamp&&(ri=()=>performance.now());let ii=0;const oi=Promise.resolve(),ai=()=>{ii=0},si=()=>ii||(oi.then(ai),ii=ri());function ci(e,t,n,r){e.addEventListener(t,n,r)}function li(e,t,n,r){e.removeEventListener(t,n,r)}function ui(e,t,n,r,i=null){const o=e._vei||(e._vei={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=di(t);if(r){const a=o[t]=pi(r,i);ci(e,n,a,s)}else a&&(li(e,n,a,s),o[t]=void 0)}}const fi=/(?:Once|Passive|Capture)$/;function di(e){let t;if(fi.test(e)){let n;t={};while(n=e.match(fi))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e.slice(2).toLowerCase(),t]}function pi(e,t){const n=e=>{const r=e.timeStamp||ri();r>=n.attached-1&&Se(hi(e,n.value),t,5,[e])};return n.value=e,n.attached=si(),n}function hi(e,t){if(Object(r["n"])(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}const mi=/^on[a-z]/,vi=(e,t)=>"value"===t,gi=(e,t,n,i,o=!1,a,s,c,l)=>{switch(t){case"class":$r(e,i,o);break;case"style":Kr(e,n,i);break;default:Object(r["v"])(t)?Object(r["t"])(t)||ui(e,t,n,i,s):bi(e,t,i,o)?ni(e,t,i,a,s,c,l):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),ti(e,t,i,o));break}};function bi(e,t,n,i){return i?"innerHTML"===t||!!(t in e&&mi.test(t)&&Object(r["o"])(n)):"spellcheck"!==t&&"draggable"!==t&&(("form"!==t||"string"!==typeof n)&&(("list"!==t||"INPUT"!==e.tagName)&&((!mi.test(t)||!Object(r["B"])(n))&&t in e)))}const yi="transition",Oi="animation",xi=(e,{slots:t})=>Fr(On,Ti(e),t);xi.displayName="Transition";const Ei={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},wi=xi.props=Object(r["h"])({},On.props,Ei);function Ti(e){let{name:t="v",type:n,css:i=!0,duration:o,enterFromClass:a=t+"-enter-from",enterActiveClass:s=t+"-enter-active",enterToClass:c=t+"-enter-to",appearFromClass:l=a,appearActiveClass:u=s,appearToClass:f=c,leaveFromClass:d=t+"-leave-from",leaveActiveClass:p=t+"-leave-active",leaveToClass:h=t+"-leave-to"}=e;const m={};for(const r in e)r in Ei||(m[r]=e[r]);if(!i)return m;const v=Si(o),g=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:O,onEnterCancelled:x,onLeave:E,onLeaveCancelled:w,onBeforeAppear:T=y,onAppear:S=O,onAppearCancelled:C=x}=m,_=(e,t,n)=>{ji(e,t?f:c),ji(e,t?u:s),n&&n()},j=(e,t)=>{ji(e,h),ji(e,p),t&&t()},A=e=>(t,r)=>{const i=e?S:O,o=()=>_(t,e,r);i&&i(t,o),Ai(()=>{ji(t,e?l:a),_i(t,e?f:c),i&&i.length>1||(g?setTimeout(o,g):ki(t,n,o))})};return Object(r["h"])(m,{onBeforeEnter(e){y&&y(e),_i(e,s),_i(e,a)},onBeforeAppear(e){T&&T(e),_i(e,u),_i(e,l)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const r=()=>j(e,t);_i(e,p),_i(e,d),Ai(()=>{ji(e,d),_i(e,h),E&&E.length>1||(b?setTimeout(r,b):ki(e,n,r))}),E&&E(e,r)},onEnterCancelled(e){_(e,!1),x&&x(e)},onAppearCancelled(e){_(e,!0),C&&C(e)},onLeaveCancelled(e){j(e),w&&w(e)}})}function Si(e){if(null==e)return null;if(Object(r["u"])(e))return[Ci(e.enter),Ci(e.leave)];{const t=Ci(e);return[t,t]}}function Ci(e){const t=Object(r["L"])(e);return t}function _i(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function ji(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Ai(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function ki(e,t,n){const{type:r,timeout:i,propCount:o}=Li(e,t);if(!r)return n();const a=r+"end";let s=0;const c=()=>{e.removeEventListener(a,l),n()},l=t=>{t.target===e&&++s>=o&&c()};setTimeout(()=>{s<o&&c()},i+1),e.addEventListener(a,l)}function Li(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(yi+"Delay"),o=r(yi+"Duration"),a=Ri(i,o),s=r(Oi+"Delay"),c=r(Oi+"Duration"),l=Ri(s,c);let u=null,f=0,d=0;t===yi?a>0&&(u=yi,f=a,d=o.length):t===Oi?l>0&&(u=Oi,f=l,d=c.length):(f=Math.max(a,l),u=f>0?a>l?yi:Oi:null,d=u?u===yi?o.length:c.length:0);const p=u===yi&&/\b(transform|all)(,|$)/.test(n[yi+"Property"]);return{type:u,timeout:f,propCount:d,hasTransform:p}}function Ri(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map((t,n)=>Ni(t)+Ni(e[n])))}function Ni(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ii(e){return e&&Ii(e["__v_raw"])||e}const Mi=new WeakMap,Di=new WeakMap,Pi={name:"TransitionGroup",props:Object(r["h"])({},wi,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_r(),r=gn();let i,o;return fn(()=>{if(!i.length)return;const t=e.moveClass||(e.name||"v")+"-move";if(!zi(i[0].el,n.vnode.el,t))return;i.forEach(Fi),i.forEach(Hi);const r=i.filter(Bi);Wi(),r.forEach(e=>{const n=e.el,r=n.style;_i(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,ji(n,t))};n.addEventListener("transitionend",i)})}),()=>{const a=Ii(e),s=Ti(a),c=a.tag||St;i=o,o=t.default?Cn(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&Sn(t,En(t,s,r,n))}if(i)for(let e=0;e<i.length;e++){const t=i[e];Sn(t,En(t,s,r,n)),Mi.set(t,t.el.getBoundingClientRect())}return Ht(c,null,o)}}},Ui=Pi;function Fi(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Hi(e){Di.set(e,e.el.getBoundingClientRect())}function Bi(e){const t=Mi.get(e),n=Di.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}function Wi(){return document.body.offsetHeight}function zi(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Li(r);return i.removeChild(r),o}const Vi=e=>{const t=e.props["onUpdate:modelValue"];return Object(r["n"])(t)?e=>Object(r["m"])(t,e):t};function Gi(e){e.target.composing=!0}function qi(e){const t=e.target;t.composing&&(t.composing=!1,$i(t,"input"))}function $i(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const Ki={created(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){e.value=null==t?"":t,e._assign=Vi(a);const s=o||"number"===e.type;ci(e,n?"change":"input",t=>{if(t.target.composing)return;let n=e.value;i?n=n.trim():s&&(n=Object(r["L"])(n)),e._assign(n)}),i&&ci(e,"change",()=>{e.value=e.value.trim()}),n||(ci(e,"compositionstart",Gi),ci(e,"compositionend",qi),ci(e,"change",qi))},beforeUpdate(e,{value:t,modifiers:{trim:n,number:i}},o){if(e._assign=Vi(o),document.activeElement===e){if(n&&e.value.trim()===t)return;if((i||"number"===e.type)&&Object(r["L"])(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Yi={created(e,t,n){Xi(e,t,n),e._assign=Vi(n),ci(e,"change",()=>{const t=e._modelValue,n=eo(e),i=e.checked,o=e._assign;if(Object(r["n"])(t)){const e=Object(r["F"])(t,n),a=-1!==e;if(i&&!a)o(t.concat(n));else if(!i&&a){const n=[...t];n.splice(e,1),o(n)}}else if(Object(r["z"])(t)){const e=t.has(n);i&&!e?o(t.add(n)):!i&&e&&(t.delete(n),o(t))}else o(to(e,i))})},beforeUpdate(e,t,n){e._assign=Vi(n),Xi(e,t,n)}};function Xi(e,{value:t,oldValue:n},i){e._modelValue=t,Object(r["n"])(t)?e.checked=Object(r["F"])(t,i.props.value)>-1:Object(r["z"])(t)?e.checked=Object(r["E"])(t,i.props.value):t!==n&&(e.checked=Object(r["D"])(t,to(e,!0)))}const Qi={created(e,{value:t},n){e.checked=Object(r["D"])(t,n.props.value),e._assign=Vi(n),ci(e,"change",()=>{e._assign(eo(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e._assign=Vi(i),t!==n&&(e.checked=Object(r["D"])(t,i.props.value))}},Ji={created(e,t,n){ci(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(eo);e._assign(e.multiple?t:t[0])}),e._assign=Vi(n)},mounted(e,{value:t}){Zi(e,t)},beforeUpdate(e,t,n){e._assign=Vi(n)},updated(e,{value:t}){Zi(e,t)}};function Zi(e,t){const n=e.multiple;if(!n||Object(r["n"])(t)||Object(r["z"])(t)){for(let i=0,o=e.options.length;i<o;i++){const o=e.options[i],a=eo(o);if(n)Object(r["n"])(t)?o.selected=Object(r["F"])(t,a)>-1:o.selected=Object(r["E"])(t,a);else if(Object(r["D"])(eo(o),t))return void(e.selectedIndex=i)}n||(e.selectedIndex=-1)}}function eo(e){return"_value"in e?e._value:e.value}function to(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const no=["ctrl","shift","alt","meta"],ro={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>no.some(n=>e[n+"Key"]&&!t.includes(n))},io=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=ro[t[e]];if(r&&r(n,t))return}return e(n,...r)},oo={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ao(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),ao(e,!0),r.enter(e)):r.leave(e,()=>{ao(e,!1)}):ao(e,t))},beforeUnmount(e,{value:t}){ao(e,t)}};function ao(e,t){e.style.display=t?e._vod:"none"}const so=Object(r["h"])({patchProp:gi,forcePatchProp:vi},qr);let co;function lo(){return co||(co=Jn(so))}const uo=(...e)=>{const t=lo().createApp(...e);const{mount:n}=t;return t.mount=e=>{const i=fo(e);if(!i)return;const o=t._component;Object(r["o"])(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const a=n(i);return i.removeAttribute("v-cloak"),i.setAttribute("data-v-app",""),a},t};function fo(e){if(Object(r["B"])(e)){const t=document.querySelector(e);return t}return e}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),f=">",d="<",p="prototype",h="script",m=u("IE_PROTO"),v=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},O=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}O=r?b(r):y();var e=a.length;while(e--)delete O[p][a[e]];return O()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=i(e),n=new v,v[p]=null,n[m]=e):n=O(),void 0===t?n:o(n,t)}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a=n("ae40"),s="find",c=!0,l=a(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!l},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g="keys",b="values",y="entries",O=function(){return this};e.exports=function(e,t,n,u,p,x,E){i(n,t,u);var w,T,S,C=function(e){if(e===p&&L)return L;if(!m&&e in A)return A[e];switch(e){case g:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},_=t+" Iterator",j=!1,A=e.prototype,k=A[v]||A["@@iterator"]||p&&A[p],L=!m&&k||C(p),R="Array"==t&&A.entries||k;if(R&&(w=o(R.call(new e)),h!==Object.prototype&&w.next&&(f||o(w)===h||(a?a(w,h):"function"!=typeof w[v]&&c(w,v,O)),s(w,_,!0,!0),f&&(d[_]=O))),p==b&&k&&k.name!==b&&(j=!0,L=function(){return k.call(this)}),f&&!E||A[v]===L||c(A,v,L),d[t]=L,p)if(T={values:C(b),keys:x?L:C(g),entries:C(y)},E)for(S in T)(m||j||!(S in A))&&l(A,S,T[S]);else r({target:t,proto:!0,forced:m||j},T);return T}},"7ee2":function(e,t,n){"use strict";n("a9de")},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"80e0":function(e,t,n){var r=n("746f");r("replace")},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("50c4");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);while(l>s)t[s++]=e;return t}},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},8418:function(e,t,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("1d80"),a=n("129f"),s=n("14c3");r("search",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),c=String(this),l=o.lastIndex;a(l,0)||(o.lastIndex=0);var u=s(o,c);return a(o.lastIndex,l)||(o.lastIndex=l),null===u?-1:u.index}]}))},"857a":function(e,t,n){var r=n("1d80"),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},"85d3":function(e,t,n){(function(e){var r,i,o;n("4160"),n("caad"),n("a15b"),n("d81d"),n("fb6a"),n("a434"),n("c19f"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("466d"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0");var a=n("7037");(function(n,s){"object"===a(t)&&"object"===a(e)?e.exports=s():(i=[],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0;var r=n(24),i=f(r),o=n(25),a=f(o),s=n(26),c=f(s),l=n(27),u=f(l);function f(e){return e&&e.__esModule?e:{default:e}}t["default"]={format:function(e,t){switch(t=t||{},t.language){case"db2":return new i["default"](t).format(e);case"n1ql":return new a["default"](t).format(e);case"pl/sql":return new c["default"](t).format(e);case"sql":case void 0:return new u["default"](t).format(e);default:throw Error("Unsupported SQL dialect: "+t.language)}}},e.exports=t["default"]},function(e,t,n){var r=n(12),i="object"==("undefined"===typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r=n(9),i=n(48),o=n(57),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;function l(e){return null==e?void 0===e?s:a:c&&c in Object(e)?i(e):o(e)}e.exports=l},function(e,t,n){var r=n(39),i=n(50);function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(74),i=p(r),o=n(8),a=p(o),s=n(21),c=p(s),l=n(22),u=p(l),f=n(23),d=p(f);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var m=function(){function e(t,n){h(this,e),this.cfg=t||{},this.indentation=new c["default"](this.cfg.indent),this.inlineBlock=new u["default"],this.params=new d["default"](this.cfg.params),this.tokenizer=n,this.previousReservedWord={},this.tokens=[],this.index=0}return e.prototype.format=function(e){this.tokens=this.tokenizer.tokenize(e);var t=this.getFormattedQueryFromTokens();return t.trim()},e.prototype.getFormattedQueryFromTokens=function(){var e=this,t="";return this.tokens.forEach((function(n,r){e.index=r,n.type===a["default"].WHITESPACE||(n.type===a["default"].LINE_COMMENT?t=e.formatLineComment(n,t):n.type===a["default"].BLOCK_COMMENT?t=e.formatBlockComment(n,t):n.type===a["default"].RESERVED_TOPLEVEL?(t=e.formatToplevelReservedWord(n,t),e.previousReservedWord=n):n.type===a["default"].RESERVED_NEWLINE?(t=e.formatNewlineReservedWord(n,t),e.previousReservedWord=n):n.type===a["default"].RESERVED?(t=e.formatWithSpaces(n,t),e.previousReservedWord=n):t=n.type===a["default"].OPEN_PAREN?e.formatOpeningParentheses(n,t):n.type===a["default"].CLOSE_PAREN?e.formatClosingParentheses(n,t):n.type===a["default"].PLACEHOLDER?e.formatPlaceholder(n,t):"$"===n.value?e.formatNewWithSpaces(n,t):","===n.value?e.formatComma(n,t):":"===n.value?e.formatWithSpaceAfter(n,t):"."===n.value?e.formatWithoutSpaces(n,t):";"===n.value?e.formatQuerySeparator(n,t):e.formatWithSpaces(n,t))})),t},e.prototype.formatLineComment=function(e,t){return this.addNewline(t+e.value)},e.prototype.formatBlockComment=function(e,t){return this.addNewline(this.addNewline(t)+this.indentComment(e.value))},e.prototype.indentComment=function(e){return e.replace(/\n/g,"\n"+this.indentation.getIndent())},e.prototype.formatToplevelReservedWord=function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t),this.indentation.increaseToplevel(),t+=" "+this.equalizeWhitespace(e.value),e.type===a["default"].RESERVED_TOPLEVEL?this.addNewLineReserved(t):this.addNewline(t)},e.prototype.formatNewlineReservedWord=function(e,t){return this.addNewline(t)+this.equalizeWhitespace(e.value)+" "},e.prototype.equalizeWhitespace=function(e){return e.replace(/\s+/g," ")},e.prototype.formatOpeningParentheses=function(e,t){var n=[a["default"].WHITESPACE,a["default"].OPEN_PAREN,a["default"].LINE_COMMENT];return n.includes(this.previousToken().type)||(t=(0,i["default"])(t)),t+=e.value,this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),t=this.addNewline(t)),t},e.prototype.formatClosingParentheses=function(e,t){return this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(e,t)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(e,this.addNewline(t)))},e.prototype.formatPlaceholder=function(e,t){return t+this.params.get(e)+" "},e.prototype.formatComma=function(e,t){return t=this.trimTrailingWhitespace(t)+e.value+" ",this.inlineBlock.isActive()||/^LIMIT$/i.test(this.previousReservedWord.value)?t:this.addNewline(t)},e.prototype.formatWithSpaceAfter=function(e,t){return this.trimTrailingWhitespace(t)+e.value+" "},e.prototype.formatWithoutSpaces=function(e,t){return this.trimTrailingWhitespace(t)+e.value},e.prototype.formatWithSpaces=function(e,t){return t+e.value+" "},e.prototype.formatNewWithSpaces=function(e,t){return t+e.value},e.prototype.formatQuerySeparator=function(e,t){return this.trimTrailingWhitespace(t)+e.value+"\n"},e.prototype.addNewline=function(e){return(0,i["default"])(e)+"\n"+this.indentation.getIndent()},e.prototype.addNewLineReserved=function(e){return(0,i["default"])(e)+this.indentation.getIndent()},e.prototype.trimTrailingWhitespace=function(e){return this.previousNonWhitespaceToken().type===a["default"].LINE_COMMENT?(0,i["default"])(e)+"\n":(0,i["default"])(e)},e.prototype.previousNonWhitespaceToken=function(){var e=1;while(this.previousToken(e).type===a["default"].WHITESPACE)e++;return this.previousToken(e)},e.prototype.previousToken=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index-e]||{}},e}();t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(66),i=l(r),o=n(63),a=l(o),s=n(8),c=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function(){function e(t){u(this,e),this.WHITESPACE_REGEX=/^(\s+)/,this.NUMBER_REGEX=/^((-\s*)?[0-9]+(\.[0-9]+)?|0x[0-9a-fA-F]+|0b[01]+)\b/,this.OPERATOR_REGEX=/^(!=|<>|==|<=|>=|!<|!>|\|\||::|->>|->|~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|.)/,this.BLOCK_COMMENT_REGEX=/^(\/\*[^]*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=this.createLineCommentRegex(t.lineCommentTypes),this.RESERVED_TOPLEVEL_REGEX=this.createReservedWordRegex(t.reservedToplevelWords),this.RESERVED_NEWLINE_REGEX=this.createReservedWordRegex(t.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=this.createReservedWordRegex(t.reservedWords),this.WORD_REGEX=this.createWordRegex(t.specialWordChars),this.STRING_REGEX=this.createStringRegex(t.stringTypes),this.OPEN_PAREN_REGEX=this.createParenRegex(t.openParens),this.CLOSE_PAREN_REGEX=this.createParenRegex(t.closeParens),this.INDEXED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(t.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(t.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(t.namedPlaceholderTypes,this.createStringPattern(t.stringTypes))}return e.prototype.createLineCommentRegex=function(e){return new RegExp("^((?:"+e.map((function(e){return(0,a["default"])(e)})).join("|")+").*?(?:\n|$))")},e.prototype.createReservedWordRegex=function(e){var t=e.join("|").replace(/ /g,"\\s+");return new RegExp("^("+t+")\\b","i")},e.prototype.createWordRegex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new RegExp("^([\\w"+e.join("")+"]+)")},e.prototype.createStringRegex=function(e){return new RegExp("^("+this.createStringPattern(e)+")")},e.prototype.createStringPattern=function(e){var t={"``":"((`[^`]*($|`))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)"};return e.map((function(e){return t[e]})).join("|")},e.prototype.createParenRegex=function(e){var t=this;return new RegExp("^("+e.map((function(e){return t.escapeParen(e)})).join("|")+")","i")},e.prototype.escapeParen=function(e){return 1===e.length?(0,a["default"])(e):"\\b"+e+"\\b"},e.prototype.createPlaceholderRegex=function(e,t){if((0,i["default"])(e))return!1;var n=e.map(a["default"]).join("|");return new RegExp("^((?:"+n+")(?:"+t+"))")},e.prototype.tokenize=function(e){var t=[],n=void 0;while(e.length)n=this.getNextToken(e,n),e=e.substring(n.value.length),t.push(n);return t},e.prototype.getNextToken=function(e,t){return this.getWhitespaceToken(e)||this.getCommentToken(e)||this.getStringToken(e)||this.getOpenParenToken(e)||this.getCloseParenToken(e)||this.getPlaceholderToken(e)||this.getNumberToken(e)||this.getReservedWordToken(e,t)||this.getWordToken(e)||this.getOperatorToken(e)},e.prototype.getWhitespaceToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].WHITESPACE,regex:this.WHITESPACE_REGEX})},e.prototype.getCommentToken=function(e){return this.getLineCommentToken(e)||this.getBlockCommentToken(e)},e.prototype.getLineCommentToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})},e.prototype.getBlockCommentToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})},e.prototype.getStringToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].STRING,regex:this.STRING_REGEX})},e.prototype.getOpenParenToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})},e.prototype.getCloseParenToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})},e.prototype.getPlaceholderToken=function(e){return this.getIdentNamedPlaceholderToken(e)||this.getStringNamedPlaceholderToken(e)||this.getIndexedPlaceholderToken(e)},e.prototype.getIdentNamedPlaceholderToken=function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})},e.prototype.getStringNamedPlaceholderToken=function(e){var t=this;return this.getPlaceholderTokenWithKey({input:e,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return t.getEscapedPlaceholderKey({key:e.slice(2,-1),quoteChar:e.slice(-1)})}})},e.prototype.getIndexedPlaceholderToken=function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})},e.prototype.getPlaceholderTokenWithKey=function(e){var t=e.input,n=e.regex,r=e.parseKey,i=this.getTokenOnFirstMatch({input:t,regex:n,type:c["default"].PLACEHOLDER});return i&&(i.key=r(i.value)),i},e.prototype.getEscapedPlaceholderKey=function(e){var t=e.key,n=e.quoteChar;return t.replace(new RegExp((0,a["default"])("\\")+n,"g"),n)},e.prototype.getNumberToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].NUMBER,regex:this.NUMBER_REGEX})},e.prototype.getOperatorToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].OPERATOR,regex:this.OPERATOR_REGEX})},e.prototype.getReservedWordToken=function(e,t){if(!t||!t.value||"."!==t.value)return this.getToplevelReservedToken(e)||this.getNewlineReservedToken(e)||this.getPlainReservedToken(e)},e.prototype.getToplevelReservedToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].RESERVED_TOPLEVEL,regex:this.RESERVED_TOPLEVEL_REGEX})},e.prototype.getNewlineReservedToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})},e.prototype.getPlainReservedToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].RESERVED,regex:this.RESERVED_PLAIN_REGEX})},e.prototype.getWordToken=function(e){return this.getTokenOnFirstMatch({input:e,type:c["default"].WORD,regex:this.WORD_REGEX})},e.prototype.getTokenOnFirstMatch=function(e){var t=e.input,n=e.type,r=e.regex,i=t.match(r);if(i)return{type:n,value:i[1]}},e}();t["default"]=f,e.exports=t["default"]},function(e,t){function n(e){var t=a(e);return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==a(e)}e.exports=n},function(e,t){"use strict";t.__esModule=!0,t["default"]={WHITESPACE:"whitespace",WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOPLEVEL:"reserved-toplevel",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},e.exports=t["default"]},function(e,t,n){var r=n(1),i=r.Symbol;e.exports=i},function(e,t,n){var r=n(11);function i(e){return null==e?"":r(e)}e.exports=i},function(e,t,n){var r=n(9),i=n(33),o=n(15),a=n(19),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;function u(e){if("string"==typeof e)return e;if(o(e))return i(e,u)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},function(e,t){(function(t){var n="object"==a(t)&&t&&t.Object===Object&&t;e.exports=n}).call(t,function(){return this}())},function(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}e.exports=r},function(e,t){var n=Function.prototype,r=n.toString;function i(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=i},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(17),i=n(18);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},function(e,t,n){var r=n(2),i=n(6),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==c}e.exports=l},function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},function(e,t,n){var r=n(2),i=n(7),o="[object Symbol]";function s(e){return"symbol"==a(e)||i(e)&&r(e)==o}e.exports=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(69),i=s(r),o=n(68),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l="top-level",u="block-level",f=function(){function e(t){c(this,e),this.indent=t||"  ",this.indentTypes=[]}return e.prototype.getIndent=function(){return(0,i["default"])(this.indent,this.indentTypes.length)},e.prototype.increaseToplevel=function(){this.indentTypes.push(l)},e.prototype.increaseBlockLevel=function(){this.indentTypes.push(u)},e.prototype.decreaseTopLevel=function(){(0,a["default"])(this.indentTypes)===l&&this.indentTypes.pop()},e.prototype.decreaseBlockLevel=function(){while(this.indentTypes.length>0){var e=this.indentTypes.pop();if(e!==l)break}},e}();t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(8),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=50,c=function(){function e(){a(this,e),this.level=0}return e.prototype.beginIfPossible=function(e,t){0===this.level&&this.isInlineBlock(e,t)?this.level=1:this.level>0?this.level++:this.level=0},e.prototype.end=function(){this.level--},e.prototype.isActive=function(){return this.level>0},e.prototype.isInlineBlock=function(e,t){for(var n=0,r=0,o=t;o<e.length;o++){var a=e[o];if(n+=a.value.length,n>s)return!1;if(a.type===i["default"].OPEN_PAREN)r++;else if(a.type===i["default"].CLOSE_PAREN&&(r--,0===r))return!0;if(this.isForbiddenToken(a))return!1}return!1},e.prototype.isForbiddenToken=function(e){var t=e.type,n=e.value;return t===i["default"].RESERVED_TOPLEVEL||t===i["default"].RESERVED_NEWLINE||t===i["default"].COMMENT||t===i["default"].BLOCK_COMMENT||";"===n},e}();t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this.params=t,this.index=0}return e.prototype.get=function(e){var t=e.key,n=e.value;return this.params?t?this.params[t]:this.params[this.index++]:n},e}();t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(4),i=s(r),o=n(5),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],u=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UPDATE","VALUES","WHERE"],f=["AND","CROSS JOIN","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],d=void 0,p=function(){function e(t){c(this,e),this.cfg=t}return e.prototype.format=function(e){return d||(d=new a["default"]({reservedWords:l,reservedToplevelWords:u,reservedNewlineWords:f,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"]})),new i["default"](this.cfg,d).format(e)},e}();t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(4),i=s(r),o=n(5),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],u=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","INTERSECT ALL","INTERSECT","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],f=["AND","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","XOR"],d=void 0,p=function(){function e(t){c(this,e),this.cfg=t}return e.prototype.format=function(e){return d||(d=new a["default"]({reservedWords:l,reservedToplevelWords:u,reservedNewlineWords:f,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"]})),new i["default"](this.cfg,d).format(e)},e}();t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(4),i=s(r),o=n(5),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],u=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UNION ALL","UNION","UPDATE","VALUES","WHERE"],f=["AND","CROSS APPLY","CROSS JOIN","ELSE","END","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],d=void 0,p=function(){function e(t){c(this,e),this.cfg=t}return e.prototype.format=function(e){return d||(d=new a["default"]({reservedWords:l,reservedToplevelWords:u,reservedNewlineWords:f,stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"]})),new i["default"](this.cfg,d).format(e)},e}();t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(4),i=s(r),o=n(5),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=["ACCESSIBLE","ACTION","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ANALYSE","ANALYZE","AS","ASC","AUTOCOMMIT","AUTO_INCREMENT","BACKUP","BEGIN","BETWEEN","BINLOG","BOTH","CASCADE","CASE","CHANGE","CHANGED","CHARACTER SET","CHARSET","CHECK","CHECKSUM","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPRESSED","CONCURRENT","CONSTRAINT","CONTAINS","CONVERT","CREATE","CROSS","CURRENT_TIMESTAMP","DATABASE","DATABASES","DAY","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DEFAULT","DEFINER","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO","DROP","DUMPFILE","DUPLICATE","DYNAMIC","ELSE","ENCLOSED","END","ENGINE","ENGINES","ENGINE_TYPE","ESCAPE","ESCAPED","EVENTS","EXEC","EXECUTE","EXISTS","EXPLAIN","EXTENDED","FAST","FETCH","FIELDS","FILE","FIRST","FIXED","FLUSH","FOR","FORCE","FOREIGN","FULL","FULLTEXT","FUNCTION","GLOBAL","GRANT","GRANTS","GROUP_CONCAT","HEAP","HIGH_PRIORITY","HOSTS","HOUR","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IFNULL","IGNORE","IN","INDEX","INDEXES","INFILE","INSERT","INSERT_ID","INSERT_METHOD","INTERVAL","INTO","INVOKER","IS","ISOLATION","KEY","KEYS","KILL","LAST_INSERT_ID","LEADING","LEVEL","LIKE","LINEAR","LINES","LOAD","LOCAL","LOCK","LOCKS","LOGS","LOW_PRIORITY","MARIA","MASTER","MASTER_CONNECT_RETRY","MASTER_HOST","MASTER_LOG_FILE","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MERGE","MINUTE","MINUTE_SECOND","MIN_ROWS","MODE","MODIFY","MONTH","MRG_MYISAM","MYISAM","NAMES","NATURAL","NOT","NOW()","NULL","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPEN","OPTIMIZE","OPTION","OPTIONALLY","OUTFILE","PACK_KEYS","PAGE","PARTIAL","PARTITION","PARTITIONS","PASSWORD","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PURGE","QUICK","RAID0","RAID_CHUNKS","RAID_CHUNKSIZE","RAID_TYPE","RANGE","READ","READ_ONLY","READ_WRITE","REFERENCES","REGEXP","RELOAD","RENAME","REPAIR","REPEATABLE","REPLACE","REPLICATION","RESET","RESTORE","RESTRICT","RETURN","RETURNS","REVOKE","RLIKE","ROLLBACK","ROW","ROWS","ROW_FORMAT","SECOND","SECURITY","SEPARATOR","SERIALIZABLE","SESSION","SHARE","SHOW","SHUTDOWN","SLAVE","SONAME","SOUNDS","SQL","SQL_AUTO_IS_NULL","SQL_BIG_RESULT","SQL_BIG_SELECTS","SQL_BIG_TABLES","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_LOG_BIN","SQL_LOG_OFF","SQL_LOG_UPDATE","SQL_LOW_PRIORITY_UPDATES","SQL_MAX_JOIN_SIZE","SQL_NO_CACHE","SQL_QUOTE_SHOW_CREATE","SQL_SAFE_UPDATES","SQL_SELECT_LIMIT","SQL_SLAVE_SKIP_COUNTER","SQL_SMALL_RESULT","SQL_WARNINGS","START","STARTING","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","STRIPED","SUPER","TABLE","TABLES","TEMPORARY","TERMINATED","THEN","TO","TRAILING","TRANSACTIONAL","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNIQUE","UNLOCK","UNSIGNED","USAGE","USE","USING","VARIABLES","VIEW","WHEN","WITH","WORK","WRITE","YEAR_MONTH"],u=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INSERT","INTERSECT","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE"],f=["AND","CROSS APPLY","CROSS JOIN","ELSE","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],d=void 0,p=function(){function e(t){c(this,e),this.cfg=t}return e.prototype.format=function(e){return d||(d=new a["default"]({reservedWords:l,reservedToplevelWords:u,reservedNewlineWords:f,stringTypes:['""',"N''","''","``","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@",":"],lineCommentTypes:["#","--"]})),new i["default"](this.cfg,d).format(e)},e}();t["default"]=p,e.exports=t["default"]},function(e,t,n){var r=n(3),i=n(1),o=r(i,"DataView");e.exports=o},function(e,t,n){var r=n(3),i=n(1),o=r(i,"Map");e.exports=o},function(e,t,n){var r=n(3),i=n(1),o=r(i,"Promise");e.exports=o},function(e,t,n){var r=n(3),i=n(1),o=r(i,"Set");e.exports=o},function(e,t,n){var r=n(3),i=n(1),o=r(i,"WeakMap");e.exports=o},function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=n},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t,n){var r=n(35),i=n(38),o=n(59);function a(e,t,n){return t===t?o(e,t,n):r(e,i,n)}e.exports=a},function(e,t,n){var r=n(2),i=n(7),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t,n){var r=n(17),i=n(54),o=n(6),a=n(14),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,f=l.toString,d=u.hasOwnProperty,p=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!o(e)||i(e))return!1;var t=r(e)?p:c;return t.test(a(e))}e.exports=h},function(e,t,n){var r=n(2),i=n(18),o=n(7),a="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",m="[object RegExp]",v="[object Set]",g="[object String]",b="[object WeakMap]",y="[object ArrayBuffer]",O="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",w="[object Int8Array]",T="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",j="[object Uint16Array]",A="[object Uint32Array]",k={};function L(e){return o(e)&&i(e.length)&&!!k[r(e)]}k[x]=k[E]=k[w]=k[T]=k[S]=k[C]=k[_]=k[j]=k[A]=!0,k[a]=k[s]=k[y]=k[c]=k[O]=k[l]=k[u]=k[f]=k[d]=k[p]=k[h]=k[m]=k[v]=k[g]=k[b]=!1,e.exports=L},function(e,t,n){var r=n(13),i=n(55),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},function(e,t){var n=9007199254740991,r=Math.floor;function i(e,t){var i="";if(!e||t<1||t>n)return i;do{t%2&&(i+=e),t=r(t/2),t&&(e+=e)}while(t);return i}e.exports=i},function(e,t){function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r<i)o[r]=e[r+t];return o}e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){var r=n(43);function i(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}e.exports=i},function(e,t,n){var r=n(36);function i(e,t){var n=e.length;while(n--&&r(t,e[n],0)>-1);return n}e.exports=i},function(e,t,n){var r=n(1),i=r["__core-js_shared__"];e.exports=i},function(e,t,n){var r=n(9),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function c(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=c},function(e,t,n){var r=n(28),i=n(29),o=n(30),a=n(31),s=n(32),c=n(2),l=n(14),u="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",v=l(r),g=l(i),b=l(o),y=l(a),O=l(s),x=c;(r&&x(new r(new ArrayBuffer(1)))!=m||i&&x(new i)!=u||o&&x(o.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=h)&&(x=function(e){var t=c(e),n=t==f?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return m;case g:return u;case b:return d;case y:return p;case O:return h}return t}),e.exports=x},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",c="\\u200d",l=RegExp("["+c+n+a+s+"]");function u(e){return l.test(e)}e.exports=u},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=a(e);return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}e.exports=i},function(e,t,n){var r=n(62),i=n(16),o=n(52),s=n(6);function c(e,t,n){if(!s(n))return!1;var c=a(t);return!!("number"==c?i(n)&&o(t,n.length):"string"==c&&t in n)&&r(n[t],e)}e.exports=c},function(e,t,n){var r=n(47),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},function(e,t,n){var r=n(58),i=r(Object.keys,Object);e.exports=i},function(e,t,n){(function(e){var r=n(12),i="object"==a(t)&&t&&!t.nodeType&&t,o=i&&"object"==a(e)&&e&&!e.nodeType&&e,s=o&&o.exports===i,c=s&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(t){}}();e.exports=l}).call(t,n(20)(e))},function(e,t){var n=Object.prototype,r=n.toString;function i(e){return r.call(e)}e.exports=i},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t){function n(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){var r=n(34),i=n(51),o=n(61);function a(e){return i(e)?o(e):r(e)}e.exports=a},function(e,t){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",c="["+n+"]",l="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",f="(?:"+l+"|"+u+")",d="[^"+n+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",v=f+"?",g="["+s+"]?",b="(?:"+m+"(?:"+[d,p,h].join("|")+")"+g+v+")*",y=g+v+b,O="(?:"+[d+l+"?",l,p,h,c].join("|")+")",x=RegExp(u+"(?="+u+")|"+O+y,"g");function E(e){return e.match(x)||[]}e.exports=E},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){var r=n(10),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);function a(e){return e=r(e),e&&o.test(e)?e.replace(i,"\\$&"):e}e.exports=a},function(e,t,n){var r=n(37),i=n(7),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(1),i=n(70),o="object"==a(t)&&t&&!t.nodeType&&t,s=o&&"object"==a(e)&&e&&!e.nodeType&&e,c=s&&s.exports===o,l=c?r.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||i;e.exports=f}).call(t,n(20)(e))},function(e,t,n){var r=n(41),i=n(49),o=n(64),a=n(15),s=n(16),c=n(65),l=n(13),u=n(67),f="[object Map]",d="[object Set]",p=Object.prototype,h=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==d)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}e.exports=m},function(e,t,n){var r=n(40),i=n(44),o=n(56),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){var r=n(42),i=n(53),o=n(72),a=n(10);function s(e,t,n){return t=(n?i(e,t,n):void 0===t)?1:o(t),r(a(e),t)}e.exports=s},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){var r=n(73),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},function(e,t,n){var r=n(71);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},function(e,t,n){var r=n(6),i=n(19),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function f(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}e.exports=f},function(e,t,n){var r=n(11),i=n(45),o=n(46),a=n(60),s=n(10),c=/\s+$/;function l(e,t,n){if(e=s(e),e&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var l=a(e),u=o(l,a(t))+1;return i(l,0,u).join("")}e.exports=l}])}))}).call(this,n("62e4")(e))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"88fb":function(e,t,n){},8925:function(e,t,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8a79":function(e,t,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),s=n("1d80"),c=n("ab13"),l=n("c430"),u="".endsWith,f=Math.min,d=c("endsWith"),p=!l&&!d&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{endsWith:function(e){var t=String(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:f(o(n),r),c=String(e);return u?u.call(t,c,i):t.slice(i-c.length,i)===c}})},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8ed6":function(e,t,n){},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"924e":function(e,t,n){},9263:function(e,t,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,c=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],f=c||u||l;f&&(s=function(e){var t,n,i,s,f=this,d=l&&f.sticky,p=r.call(f),h=f.source,m=0,v=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),v=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,m++),n=new RegExp("^(?:"+h+")",p)),u&&(n=new RegExp("^"+h+"$(?!\\s)",p)),c&&(t=f.lastIndex),i=o.call(d?n:f,v),d?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:c&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),u&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},"94ca":function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},"97d3":function(e,t,n){},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),i=n("d066"),o=n("0d3b"),a=n("6eeb"),s=n("e2cc"),c=n("d44e"),l=n("9ed3"),u=n("69f3"),f=n("19aa"),d=n("5135"),p=n("0366"),h=n("f5df"),m=n("825a"),v=n("861d"),g=n("7c73"),b=n("5c6c"),y=n("9a1f"),O=n("35a1"),x=n("b622"),E=i("fetch"),w=i("Headers"),T=x("iterator"),S="URLSearchParams",C=S+"Iterator",_=u.set,j=u.getterFor(S),A=u.getterFor(C),k=/\+/g,L=Array(4),R=function(e){return L[e-1]||(L[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},N=function(e){try{return decodeURIComponent(e)}catch(t){return e}},I=function(e){var t=e.replace(k," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(R(n--),N);return t}},M=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},P=function(e){return D[e]},U=function(e){return encodeURIComponent(e).replace(M,P)},F=function(e,t){if(t){var n,r,i=t.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),e.push({key:I(r.shift()),value:I(r.join("="))}))}},H=function(e){this.entries.length=0,F(this.entries,e)},B=function(e,t){if(e<t)throw TypeError("Not enough arguments")},W=l((function(e,t){_(this,{type:C,iterator:y(j(e).entries),kind:t})}),"Iterator",(function(){var e=A(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),z=function(){f(this,z,S);var e,t,n,r,i,o,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,p=[];if(_(u,{type:S,entries:p,updateURL:function(){},updateSearchParams:H}),void 0!==l)if(v(l))if(e=O(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(r=n.call(t)).done){if(i=y(m(r.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:s.value+""})}}else for(c in l)d(l,c)&&p.push({key:c,value:l[c]+""});else F(p,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},V=z.prototype;s(V,{append:function(e,t){B(arguments.length,2);var n=j(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);var t=j(this),n=t.entries,r=e+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){B(arguments.length,1);for(var t=j(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){B(arguments.length,1);for(var t=j(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){B(arguments.length,1);var t=j(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){B(arguments.length,1);for(var n,r=j(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)n=i[c],n.key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=j(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=j(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),a(V,T,V.entries),a(V,"toString",(function(){var e,t=j(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(U(e.key)+"="+U(e.value));return n.join("&")}),{enumerable:!0}),c(z,S),r({global:!0,forced:!o},{URLSearchParams:z}),o||"function"!=typeof E||"function"!=typeof w||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,h(n)===S&&(r=t.headers?new w(t.headers):new w,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:b(0,String(n)),headers:b(0,r)}))),i.push(t)),E.apply(this,i)}}),e.exports={URLSearchParams:z,getState:j}},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),c=n("50c4"),l=n("8418"),u=n("65f0"),f=n("1dde"),d=n("b622"),p=n("2d00"),h=d("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",g=p>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),b=f("concat"),y=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)},O=!g||!b;r({target:"Array",proto:!0,forced:O},{concat:function(e){var t,n,r,i,o,a=s(this),f=u(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],y(o)){if(i=c(o.length),d+i>m)throw TypeError(v);for(n=0;n<i;n++,d++)n in o&&l(f,d,o[n])}else{if(d>=m)throw TypeError(v);l(f,d++,o)}return f.length=d,f}})},"9a1f":function(e,t,n){var r=n("825a"),i=n("35a1");e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9d41":function(e,t,n){},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=c,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9ff4":function(e,t,n){"use strict";(function(e){function r(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return Q})),n.d(t,"f",(function(){return ee})),n.d(t,"g",(function(){return re})),n.d(t,"h",(function(){return k})),n.d(t,"i",(function(){return ae})),n.d(t,"j",(function(){return te})),n.d(t,"k",(function(){return N})),n.d(t,"l",(function(){return Z})),n.d(t,"m",(function(){return ne})),n.d(t,"n",(function(){return I})),n.d(t,"o",(function(){return U})),n.d(t,"p",(function(){return o})),n.d(t,"q",(function(){return m})),n.d(t,"r",(function(){return $})),n.d(t,"s",(function(){return M})),n.d(t,"t",(function(){return A})),n.d(t,"u",(function(){return B})),n.d(t,"v",(function(){return j})),n.d(t,"w",(function(){return W})),n.d(t,"x",(function(){return K})),n.d(t,"y",(function(){return v})),n.d(t,"z",(function(){return D})),n.d(t,"A",(function(){return s})),n.d(t,"B",(function(){return F})),n.d(t,"C",(function(){return H})),n.d(t,"D",(function(){return b})),n.d(t,"E",(function(){return O})),n.d(t,"F",(function(){return y})),n.d(t,"G",(function(){return r})),n.d(t,"H",(function(){return d})),n.d(t,"I",(function(){return c})),n.d(t,"J",(function(){return L})),n.d(t,"K",(function(){return x})),n.d(t,"L",(function(){return ie})),n.d(t,"M",(function(){return G}));const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl",o=r(i);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=r(a);function c(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=c(F(r)?f(r):r);if(i)for(const e in i)t[e]=i[e]}return t}if(B(e))return e}const l=/;(?![^(]*\))/g,u=/:(.+)/;function f(e){const t={};return e.split(l).forEach(e=>{if(e){const n=e.split(u);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function d(e){let t="";if(F(e))t=e;else if(I(e))for(let n=0;n<e.length;n++)t+=d(e[n])+" ";else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const p="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",h="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",m=r(p),v=r(h);function g(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=b(e[r],t[r]);return n}function b(e,t){if(e===t)return!0;let n=P(e),r=P(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=I(e),r=I(t),n||r)return!(!n||!r)&&g(e,t);if(n=B(e),r=B(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!b(e[n],t[n]))return!1}}return String(e)===String(t)}function y(e,t){return e.findIndex(e=>b(e,t))}function O(e,t){for(let n of e)if(b(n,t))return!0;return!1}const x=e=>null==e?"":B(e)?JSON.stringify(e,E,2):String(e),E=(e,t)=>M(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||I(t)||q(t)?t:String(t),w={},T=[],S=()=>{},C=()=>!1,_=/^on[^a-z]/,j=e=>_.test(e),A=e=>e.startsWith("onUpdate:"),k=Object.assign,L=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,N=(e,t)=>R.call(e,t),I=Array.isArray,M=e=>"[object Map]"===V(e),D=e=>"[object Set]"===V(e),P=e=>e instanceof Date,U=e=>"function"===typeof e,F=e=>"string"===typeof e,H=e=>"symbol"===typeof e,B=e=>null!==e&&"object"===typeof e,W=e=>B(e)&&U(e.then)&&U(e.catch),z=Object.prototype.toString,V=e=>z.call(e),G=e=>V(e).slice(8,-1),q=e=>"[object Object]"===V(e),$=e=>F(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=r("key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},X=/-(\w)/g,Q=Y(e=>e.replace(X,(e,t)=>t?t.toUpperCase():"")),J=/\B([A-Z])/g,Z=Y(e=>e.replace(J,"-$1").toLowerCase()),ee=Y(e=>e.charAt(0).toUpperCase()+e.slice(1)),te=(e,t)=>e!==t&&(e===e||t===t),ne=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},re=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ie=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let oe;const ae=()=>oe||(oe="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{})}).call(this,n("c8ba"))},a128:function(e,t,n){n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("36c6"),i=n("4a4b"),o=n("c5f7"),a=n("b17c");function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("44ad"),o=n("fc6a"),a=n("a640"),s=[].join,c=i!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),f=n("ae40"),d=u("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,m=Math.min,v=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,u,f,d,p,b=s(this),y=a(b.length),O=i(e,y),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=y-O):(n=x-2,r=m(h(o(t),0),y-O)),y+n-r>v)throw TypeError(g);for(u=c(b,r),f=0;f<r;f++)d=O+f,d in b&&l(u,f,b[d]);if(u.length=r,n<r){for(f=O;f<y-r;f++)d=f+r,p=f+n,d in b?b[p]=b[d]:delete b[p];for(f=y;f>y-r+n;f--)delete b[f-1]}else if(n>r)for(f=y-r;f>O;f--)d=f+r-1,p=f+n-1,d in b?b[p]=b[d]:delete b[p];for(f=0;f<n;f++)b[f+O]=arguments[f+2];return b.length=y-r+n,u}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),c=n("4930"),l=n("fdbf"),u=n("d039"),f=n("5135"),d=n("e8b5"),p=n("861d"),h=n("825a"),m=n("7b0b"),v=n("fc6a"),g=n("c04e"),b=n("5c6c"),y=n("7c73"),O=n("df75"),x=n("241c"),E=n("057f"),w=n("7418"),T=n("06cf"),S=n("9bf2"),C=n("d1e7"),_=n("9112"),j=n("6eeb"),A=n("5692"),k=n("f772"),L=n("d012"),R=n("90e3"),N=n("b622"),I=n("e538"),M=n("746f"),D=n("d44e"),P=n("69f3"),U=n("b727").forEach,F=k("hidden"),H="Symbol",B="prototype",W=N("toPrimitive"),z=P.set,V=P.getterFor(H),G=Object[B],q=i.Symbol,$=o("JSON","stringify"),K=T.f,Y=S.f,X=E.f,Q=C.f,J=A("symbols"),Z=A("op-symbols"),ee=A("string-to-symbol-registry"),te=A("symbol-to-string-registry"),ne=A("wks"),re=i.QObject,ie=!re||!re[B]||!re[B].findChild,oe=s&&u((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(G,t);r&&delete G[t],Y(e,t,n),r&&e!==G&&Y(G,t,r)}:Y,ae=function(e,t){var n=J[e]=y(q[B]);return z(n,{type:H,tag:e,description:t}),s||(n.description=t),n},se=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ce=function(e,t,n){e===G&&ce(Z,t,n),h(e);var r=g(t,!0);return h(n),f(J,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:b(0,!1)})):(f(e,F)||Y(e,F,b(1,{})),e[F][r]=!0),oe(e,r,n)):Y(e,r,n)},le=function(e,t){h(e);var n=v(t),r=O(n).concat(he(n));return U(r,(function(t){s&&!fe.call(n,t)||ce(e,t,n[t])})),e},ue=function(e,t){return void 0===t?y(e):le(y(e),t)},fe=function(e){var t=g(e,!0),n=Q.call(this,t);return!(this===G&&f(J,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,F)&&this[F][t])||n)},de=function(e,t){var n=v(e),r=g(t,!0);if(n!==G||!f(J,r)||f(Z,r)){var i=K(n,r);return!i||!f(J,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},pe=function(e){var t=X(v(e)),n=[];return U(t,(function(e){f(J,e)||f(L,e)||n.push(e)})),n},he=function(e){var t=e===G,n=X(t?Z:v(e)),r=[];return U(n,(function(e){!f(J,e)||t&&!f(G,e)||r.push(J[e])})),r};if(c||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===G&&n.call(Z,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),oe(this,t,b(1,e))};return s&&ie&&oe(G,t,{configurable:!0,set:n}),ae(t,e)},j(q[B],"toString",(function(){return V(this).tag})),j(q,"withoutSetter",(function(e){return ae(R(e),e)})),C.f=fe,S.f=ce,T.f=de,x.f=E.f=pe,w.f=he,I.f=function(e){return ae(N(e),e)},s&&(Y(q[B],"description",{configurable:!0,get:function(){return V(this).description}}),a||j(G,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),U(O(ne),(function(e){M(e)})),r({target:H,stat:!0,forced:!c},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:ue,defineProperty:ce,defineProperties:le,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:u((function(){w.f(1)}))},{getOwnPropertySymbols:function(e){return w.f(m(e))}}),$){var me=!c||u((function(){var e=q();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}));r({target:"JSON",stat:!0,forced:me},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,$.apply(null,i)}})}q[B][W]||_(q[B],W,q[B].valueOf),D(q,H),L[F]=!0},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),c=n("4840"),l=n("cdf9"),u=n("6eeb"),f=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof o||o.prototype["finally"]||u(o.prototype,"finally",s("Promise").prototype["finally"])},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9de:function(e,t,n){},a9e3:function(e,t,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),c=n("c6b6"),l=n("7156"),u=n("c04e"),f=n("d039"),d=n("7c73"),p=n("241c").f,h=n("06cf").f,m=n("9bf2").f,v=n("58a8").trim,g="Number",b=i[g],y=b.prototype,O=c(d(y))==g,x=function(e){var t,n,r,i,o,a,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=v(l),t=l.charCodeAt(0),43===t||45===t){if(n=l.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(o=l.slice(2),a=o.length,s=0;s<a;s++)if(c=o.charCodeAt(s),c<48||c>i)return NaN;return parseInt(o,r)}return+l};if(o(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(O?f((function(){y.valueOf.call(n)})):c(n)!=g)?l(new b(x(t)),n,w):x(t)},T=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;T.length>S;S++)s(b,E=T[S])&&!s(w,E)&&m(w,E,h(b,E));w.prototype=y,y.constructor=w,a(i,g,w)}},a9e5:function(e,t,n){},aa6a:function(e,t,n){n("d3b7"),n("ac1f"),n("3ca3"),n("ddb0"),n("2b3d");var r=n("dc5c"),i="http://192.168.1.8:8071",o={open:!1,host:"0.0.0.0",port:3e3,https:!1,hotOnly:!1,proxy:{"/api":{target:i,changeOrigin:!0,router:function(e,t){console.log("[动态代理监听]",e.url,e.headers.apiurl,e.headers.cookie);var n=i,o=e.headers.apiurl,a=e.headers.cookie;!o&&(o=(r(/apiUrl=([\0-\uFFFF]+); /,{apiUrl:1}).exec(a+"; ")||[])[1]);try{new URL(o),n=o}catch(s){n=i,console.log("请求头中没有合法的代理地址,使用默认代理地址",n,o)}return n}}}};e.exports.devServer=o,e.exports.apiUrl=i,e.exports.dev=!1},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},abee:function(e,t,n){},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},acac:function(e,t,n){"use strict";var r=n("e2cc"),i=n("f183").getWeakData,o=n("825a"),a=n("861d"),s=n("19aa"),c=n("2266"),l=n("b727"),u=n("5135"),f=n("69f3"),d=f.set,p=f.getterFor,h=l.find,m=l.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,r){s(e,f,t),d(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[l],e,n)})),h=p(t),m=function(e,t,n){var r=h(e),a=i(o(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t)["delete"](e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&u(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ad78:function(e,t,n){"use strict";n("608d")},ade3:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},ae40:function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],l=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:c,f=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(l&&!r)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,f)}))}},ae93:function(e,t,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),c=n("5135"),l=n("b622"),u=n("c430"),f=l("iterator"),d=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):d=!0),void 0==r&&(r={}),u||c(r,f)||s(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},af03:function(e,t,n){var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0ae:function(e,t,n){"use strict";n("2d2a")},b0c0:function(e,t,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in o)&&i(o,c,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},b17c:function(e,t,n){n("4ae1");var r=n("4a4b"),i=n("6f8f");function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=Function.bind.apply(e,i),a=new o;return n&&r(a,n.prototype),a},o.apply(null,arguments)}e.exports=o},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),c=n("c345"),l=n("3934"),u=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"],(r.isBlob(f)||r.isFile(f))&&f.type&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=unescape(encodeURIComponent(e.auth.password))||"";d.Authorization="Basic "+btoa(h+":"+m)}var v=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||l(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},b575:function(e,t,n){var r,i,o,a,s,c,l,u,f=n("da84"),d=n("06cf").f,p=n("c6b6"),h=n("2cf4").set,m=n("1cdc"),v=f.MutationObserver||f.WebKitMutationObserver,g=f.process,b=f.Promise,y="process"==p(g),O=d(f,"queueMicrotask"),x=O&&O.value;x||(r=function(){var e,t;y&&(e=g.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},y?a=function(){g.nextTick(r)}:v&&!m?(s=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,a=function(){u.call(l,r)}):a=function(){h.call(f,r)}),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),c=n("fdbf"),l=i("wks"),u=r.Symbol,f=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(s&&o(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b727:function(e,t,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f;return function(p,h,m,v){for(var g,b,y=o(p),O=i(y),x=r(h,m,3),E=a(O.length),w=0,T=v||s,S=t?T(p,E):n?T(p,0):void 0;E>w;w++)if((d||w in O)&&(g=O[w],b=x(g,w,y),e))if(t)S[w]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:c.call(S,g)}else if(u)return!1;return f?-1:l||u?u:S}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},b743:function(e,t,n){(function(e){var r,i,o;n("fb6a");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var c=i(t,o,"minFoldSize");function l(e){var n=s(t,r);if(!n||n.to.line-n.from.line<c)return null;for(var i=t.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold&&"fold"!==a){if(!e)return null;n.cleared=!0,i[o].clear()}return n}var u=l(!0);if(i(t,o,"scanUp"))while(!u&&r.line>t.firstLine())r=e.Pos(r.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==a){var f=n(t,o);e.on(f,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(u.from,u.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,u.from,u.to)}}function n(e,t){var n=i(e,t,"widget");if("string"==typeof n){var r=document.createTextNode(n);n=document.createElement("span"),n.appendChild(r),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var r={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return i(this,e,t)}))}))}).call(this,n("62e4")(e))},baa5:function(e,t,n){var r=n("23e7"),i=n("e58c");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(e,t,n){e.exports=n("cee4")},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("621a"),a=n("2626"),s="ArrayBuffer",c=o[s],l=i[s];r({global:!0,forced:l!==c},{ArrayBuffer:c}),a(s)},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c3f2:function(e,t,n){},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t){e.exports=!1},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===i.call(e)}function v(e){return"[object File]"===i.call(e)}function g(e){return"[object Blob]"===i.call(e)}function b(e){return"[object Function]"===i.call(e)}function y(e){return p(e)&&b(e.pipe)}function O(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function T(){var e={};function t(t,n){h(e[n])&&h(t)?e[n]=T(e[n],t):h(t)?e[n]=T({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)w(arguments[n],t);return e}function S(e,t,n){return w(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:c,isBuffer:s,isFormData:l,isArrayBufferView:u,isString:f,isNumber:d,isObject:p,isPlainObject:h,isUndefined:a,isDate:m,isFile:v,isBlob:g,isFunction:b,isStream:y,isURLSearchParams:O,isStandardBrowserEnv:E,forEach:w,merge:T,extend:S,trim:x,stripBOM:C}},c59b:function(e,t,n){"use strict";n("3706")},c5f7:function(e,t,n){function r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}n("c975"),n("d3b7"),n("25f0"),e.exports=r},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a=n("ae40"),s="findIndex",c=!0,l=a(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},c894:function(e,t,n){},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var r=n("d039"),i=n("5899"),o="​᠎";e.exports=function(e){return r((function(){return!!i[e]()||o[e]()!=o||i[e].name!==e}))}},c975:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").indexOf,o=n("a640"),a=n("ae40"),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},c9ea:function(e,t,n){"use strict";n("88fb")},ca84:function(e,t,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb29:function(e,t,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cca6:function(e,t,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cd3f:function(e,t,n){"use strict";n("924e")},cdf9:function(e,t,n){var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},ce59:function(e,t,n){(function(e){var r,i,o;n("fb6a"),n("ac1f"),n("5319"),n("18a5");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}}));var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e,t,n){var r=e.options.hintOptions,i={};for(var o in h)i[o]=h[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function s(e){return"string"==typeof e?e:e.text}function c(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}function l(e,t){while(t&&t!=e){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,a=r.cm,u=this.hints=document.createElement("ul"),f=r.cm.options.theme;u.className="CodeMirror-hints "+f,this.selectedHint=i.selectedHint||0;for(var d=i.list,p=0;p<d.length;++p){var h=u.appendChild(document.createElement("li")),m=d[p],v=t+(p!=this.selectedHint?"":" "+n);null!=m.className&&(v=m.className+" "+v),h.className=v,m.render?m.render(h,i,m):h.appendChild(document.createTextNode(m.displayText||s(m))),h.hintId=p}var g=a.cursorCoords(r.options.alignWithWord?i.from:null),b=g.left,y=g.bottom,O=!0;u.style.left=b+"px",u.style.top=y+"px";var x=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),E=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(r.options.container||document.body).appendChild(u);var w=u.getBoundingClientRect(),T=w.bottom-E,S=u.scrollHeight>u.clientHeight+1,C=a.getScrollInfo();if(T>0){var _=w.bottom-w.top,j=g.top-(g.bottom-w.top);if(j-_>0)u.style.top=(y=g.top-_)+"px",O=!1;else if(_>E){u.style.height=E-5+"px",u.style.top=(y=g.bottom-w.top)+"px";var A=a.getCursor();i.from.ch!=A.ch&&(g=a.cursorCoords(A),u.style.left=(b=g.left)+"px",w=u.getBoundingClientRect())}}var k,L=w.right-x;if(L>0&&(w.right-w.left>x&&(u.style.width=x-5+"px",L-=w.right-w.left-x),u.style.left=(b=g.left-L)+"px"),S)for(var R=u.firstChild;R;R=R.nextSibling)R.style.paddingRight=a.display.nativeBarWidth+"px";(a.addKeyMap(this.keyMap=c(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:d.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus)&&(a.on("blur",this.onBlur=function(){k=setTimeout((function(){r.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(k)}));return a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect(),n=y+C.top-e.top,i=n-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(O||(i+=u.offsetHeight),i<=t.top||i>=t.bottom)return r.close();u.style.top=n+"px",u.style.left=b+C.left-e.left+"px"}),e.on(u,"dblclick",(function(e){var t=l(u,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(u,"click",(function(e){var t=l(u,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())})),e.on(u,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),e.signal(i,"select",d[this.selectedHint],u.childNodes[this.selectedHint]),!0}function f(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function d(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function p(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=f(e,i);function o(i){if(i==r.length)return t(null);d(r[i],e,n,(function(e){e&&e.list.length>0?t(e):o(i+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=i((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;d(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown")))}},u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+n,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var c=[],l=0;l<n.words.length;l++){var u=n.words[l];u.slice(0,r.length)==r&&c.push(u)}if(c.length)return{list:c,from:a,to:s}})),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}))}).call(this,n("62e4")(e))},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function c(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=c(s);l.Axios=o,l.create=function(e){return c(a(l.defaults,e))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),e.exports=l,e.exports.default=l},cf85:function(e,t,n){"use strict";var r={url:"输入api地址(示例:query/data)",param:'{\n  keyword: "",//查询关键字\n  limit: 10,//分页条数(必填, 默认10) \n  page: 1,//分页页码(必填, 默认1) \n}'};r.paramTips="填写请求参数;示例:\n".concat(r.param),r.result='{\n  code: 0,//接口响应码 (1:成功;0:失败)\n  data: null, //接口业务数据\n  message: "没有数据",//接口消息\n}',r.resultTips="填写返回参数;示例:\n".concat(r.result),r.paramSet="function paramSet(param) {\n  param=param||this.param;\n  return {\n    params: param,\n    url: this.url,\n    method: this.method\n  };\n}",r.paramSetTips="填写模拟请求参数;示例:\n".concat(r.paramSet),r.resultSet="function resultSet(result) {\n  return  Object.assign(this.result, result);\n}",r.resultSetTips="填写模拟返回参数;示例:\n".concat(r.resultSet),r.paramDescTips='填写参数说明;示例:\n  {\n    keyword: "",//查询关键字\n    limit: 10,//分页每页条数(10条)\n    page: 1,//分页页码(第一页)\n  }\n  ',r.paramCreateTips='前端脚本构建请求参数;示例:\n  function() {\n    return {\n      keyword: "",\n      limit: 10,\n      page: 1\n    };\n  } ',r.requestHeaderTips="填写附加的请求头信息;示例:\n{\n  'content-type': 'application/x-www-form-urlencoded'\n}",r.resultDescTips='填写参数说明;示例:\n  {\n    code: "0",//接口状态码(0:成功;1:失败)\n    data: ["Test19"],//具体数据内容(数组)\n    total:1,//分页查询数据总数\n    message: "查询成功"//接口提示信息\n  }\n  ',r.resultCreateTips='前端脚本构建返回结果;示例:\n  function() {\n    return {\n      code: "0",\n      data: ["Test19"],\n      total:1,\n      message: "查询成功"\n    };\n  } \n  ',t["a"]=r},cfa5:function(e,t,n){(function(e){var r,i,o;n("c975"),n("a15b"),n("fb6a"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),n("498a");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b"),n("638c")):(i=[n("366b"),n("638c")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";var t,n,r,i,o={QUERY_DIV:";",ALIAS_KEYWORD:"AS"},s=e.Pos,c=e.cmpPos;function l(e){return"[object Array]"==Object.prototype.toString.call(e)}function u(t){var n=t.doc.modeOption;return"sql"===n&&(n="text/x-sql"),e.resolveMode(n).keywords}function f(t){var n=t.doc.modeOption;return"sql"===n&&(n="text/x-sql"),e.resolveMode(n).identifierQuote||"`"}function d(e){return"string"==typeof e?e:e.text}function p(e,t){return l(t)&&(t={columns:t}),t.text||(t.text=e),t}function h(e){var t={};if(l(e))for(var n=e.length-1;n>=0;n--){var r=e[n];t[d(r).toUpperCase()]=p(d(r),r)}else if(e)for(var i in e)t[i.toUpperCase()]=p(i,e[i]);return t}function m(e){return t[e.toUpperCase()]}function v(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function g(e,t){var n=e.length,r=d(t).substr(0,n);return e.toUpperCase()===r.toUpperCase()}function b(e,t,n,r){if(l(n))for(var i=0;i<n.length;i++)g(t,n[i])&&e.push(r(n[i]));else for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];a=a&&!0!==a?a.displayText?{text:a.text,displayText:a.displayText}:a.text:o,g(t,a)&&e.push(r(a))}}function y(e){"."==e.charAt(0)&&(e=e.substr(1));for(var t=e.split(i+i),n=0;n<t.length;n++)t[n]=t[n].replace(new RegExp(i,"g"),"");return t.join(i)}function O(e){for(var t=d(e).split("."),n=0;n<t.length;n++)t[n]=i+t[n].replace(new RegExp(i,"g"),i+i)+i;var r=t.join(".");return"string"==typeof e?r:(e=v(e),e.text=r,e)}function x(e,r,o,a){var c=!1,l=[],u=r.start,f=!0;while(f)f="."==r.string.charAt(0),c=c||r.string.charAt(0)==i,u=r.start,l.unshift(y(r.string)),r=a.getTokenAt(s(e.line,r.start)),"."==r.string&&(f=!0,r=a.getTokenAt(s(e.line,r.start)));var d=l.join(".");b(o,d,t,(function(e){return c?O(e):e})),b(o,d,n,(function(e){return c?O(e):e})),d=l.pop();var p=l.join("."),h=!1,g=p;if(!m(p)){var x=p;p=w(p,a),p!==x&&(h=!0)}var E=m(p);return E&&E.columns&&(E=E.columns),E&&b(o,d,E,(function(e){var t=p;return 1==h&&(t=g),"string"==typeof e?e=t+"."+e:(e=v(e),e.text=t+"."+e.text),c?O(e):e})),u}function E(e,t){for(var n=e.split(/\s+/),r=0;r<n.length;r++)n[r]&&t(n[r].replace(/[,;]/g,""))}function w(e,t){var n=t.doc,r=n.getValue(),i=e.toUpperCase(),a="",l="",u=[],f={start:s(0,0),end:s(t.lastLine(),t.getLineHandle(t.lastLine()).length)},d=r.indexOf(o.QUERY_DIV);while(-1!=d)u.push(n.posFromIndex(d)),d=r.indexOf(o.QUERY_DIV,d+1);u.unshift(s(0,0)),u.push(s(t.lastLine(),t.getLineHandle(t.lastLine()).text.length));for(var p=null,h=t.getCursor(),v=0;v<u.length;v++){if((null==p||c(h,p)>0)&&c(h,u[v])<=0){f={start:p,end:u[v]};break}p=u[v]}if(f.start){var g=n.getRange(f.start,f.end,!1);for(v=0;v<g.length;v++){var b=g[v];if(E(b,(function(e){var t=e.toUpperCase();t===i&&m(a)&&(l=a),t!==o.ALIAS_KEYWORD&&(a=e)})),l)break}}return l}e.registerHelper("hint","sql",(function(e,o){t=h(o&&o.tables);var c=o&&o.defaultTable,l=o&&o.disableKeywords;n=c&&m(c),r=u(e);var d=o.words;r=Object.assign({},r,d),i=f(e),c&&!n&&(n=w(c,e)),n=n||[],n.columns&&(n=n.columns);var p,v,g,y=e.getCursor(),O=[],E=e.getTokenAt(y);E.end>y.ch&&(E.end=y.ch,E.string=E.string.slice(0,y.ch-E.start)),E.string.match(/^[.`"\w@]\w*$/)?(g=E.string,p=E.start,v=E.end):(p=v=y.ch,g=""),"."==g.charAt(0)||g.charAt(0)==i?p=x(y,E,O,e):(b(O,g,n,(function(e){return{text:e,className:"CodeMirror-hint-table CodeMirror-hint-default-table"}})),b(O,g,t,(function(e){return"object"===a(e)?e.className="CodeMirror-hint-table":e={text:e,className:"CodeMirror-hint-table"},e})),l||b(O,g,r,(function(e){return{text:e.toUpperCase(),className:"CodeMirror-hint-keyword"}})));var T=(E.string||"").trim(" ");return!T&&!E.type||"punctuation"==E.type?{list:[]}:{list:O,from:s(y.line,p),to:s(y.line,v)}}))}))}).call(this,n("62e4")(e))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),i=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),i=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d48d:function(e,t,n){"use strict";n("42c6")},d58f:function(e,t,n){var r=n("1c0b"),i=n("7b0b"),o=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=o(l),f=a(l.length),d=e?f-1:0,p=e?-1:1;if(s<2)while(1){if(d in u){c=u[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in u&&(c=n(c,u[d],d,l));return c}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),c=o("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),m=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!v||"replace"===e&&(!l||!u||d)||"split"===e&&!p){var g=/./[h],b=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?m&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],O=b[1];r(String.prototype,e,y),r(RegExp.prototype,h,2==t?function(e,t){return O.call(e,this,t)}:function(e){return O.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),c=a("map");r({target:"Array",proto:!0,forced:!s||!c},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dafc:function(e,t,n){"use strict";n("8ed6")},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,l=o(r),u={},f=0;while(l.length>f)n=i(r,t=l[f++]),void 0!==n&&c(u,t,n);return u}})},dc5c:function(e,t,n){n("a4d3"),n("e01a"),n("80e0"),n("13d5"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("3ca3"),n("5319"),n("10d1"),n("ddb0");var r=n("7037"),i=n("a128"),o=(n("36c6"),n("6b58"),n("ed6d"));function a(t,n){e.exports=a=function(e,t){return new u(e,void 0,t)};var s=i(RegExp),c=RegExp.prototype,l=new WeakMap;function u(e,t,n){var r=s.call(this,e,t);return l.set(r,n||l.get(e)),r}function f(e,t){var n=l.get(t);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return o(u,s),u.prototype.exec=function(e){var t=c.exec.call(this,e);return t&&(t.groups=f(t,this)),t},u.prototype[Symbol.replace]=function(e,t){if("string"===typeof t){var n=l.get(this);return c[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"===typeof t){var i=this;return c[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==r(e[e.length-1])&&e.push(f(e,i)),t.apply(this,e)}))}return c[Symbol.replace].call(this,e,t)},a.apply(this,arguments)}e.exports=a},ddb0:function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),c=s("iterator"),l=s("toStringTag"),u=o.values;for(var f in i){var d=r[f],p=d&&d.prototype;if(p){if(p[c]!==u)try{a(p,c,u)}catch(m){p[c]=u}if(p[l]||a(p,l,f),i[f])for(var h in o)if(p[h]!==o[h])try{a(p,h,o[h])}catch(m){p[h]=o[h]}}}},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var l=[];for(c=s;c<i.length;c++)l.push("..");return l=l.concat(o.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),c=n("9bf2").f,l=n("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(f[t]=!0),t};l(d,u);var p=d.prototype=u.prototype;p.constructor=d;var h=p.toString,m="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=m?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(e,t,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1f3:function(e,t,n){"use strict";n("abee")},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),c="Array Iterator",l=a.set,u=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=i((function(){a(1)})),l=!s||c;r({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e58c:function(e,t,n){"use strict";var r=n("fc6a"),i=n("a691"),o=n("50c4"),a=n("a640"),s=n("ae40"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),p=u||!f||!d;e.exports=p?function(e){if(u)return l.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=c(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),c=n("c430"),l=n("da84"),u=n("d066"),f=n("fea9"),d=n("6eeb"),p=n("e2cc"),h=n("d44e"),m=n("2626"),v=n("861d"),g=n("1c0b"),b=n("19aa"),y=n("c6b6"),O=n("8925"),x=n("2266"),E=n("1c7e"),w=n("4840"),T=n("2cf4").set,S=n("b575"),C=n("cdf9"),_=n("44de"),j=n("f069"),A=n("e667"),k=n("69f3"),L=n("94ca"),R=n("b622"),N=n("2d00"),I=R("species"),M="Promise",D=k.get,P=k.set,U=k.getterFor(M),F=f,H=l.TypeError,B=l.document,W=l.process,z=u("fetch"),V=j.f,G=V,q="process"==y(W),$=!!(B&&B.createEvent&&l.dispatchEvent),K="unhandledrejection",Y="rejectionhandled",X=0,Q=1,J=2,Z=1,ee=2,te=L(M,(function(){var e=O(F)!==String(F);if(!e){if(66===N)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!F.prototype["finally"])return!0;if(N>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[I]=n,!(t.then((function(){}))instanceof n)})),ne=te||!E((function(e){F.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S((function(){var i=t.value,o=t.state==Q,a=0;while(r.length>a){var s,c,l,u=r[a++],f=o?u.ok:u.fail,d=u.resolve,p=u.reject,h=u.domain;try{f?(o||(t.rejection===ee&&ce(e,t),t.rejection=Z),!0===f?s=i:(h&&h.enter(),s=f(i),h&&(h.exit(),l=!0)),s===u.promise?p(H("Promise-chain cycle")):(c=re(s))?c.call(s,d,p):d(s)):p(i)}catch(m){h&&!l&&h.exit(),p(m)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},oe=function(e,t,n){var r,i;$?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(i=l["on"+e])?i(r):e===K&&_("Unhandled promise rejection",n)},ae=function(e,t){T.call(l,(function(){var n,r=t.value,i=se(t);if(i&&(n=A((function(){q?W.emit("unhandledRejection",r,e):oe(K,e,r)})),t.rejection=q||se(t)?ee:Z,n.error))throw n.value}))},se=function(e){return e.rejection!==Z&&!e.parent},ce=function(e,t){T.call(l,(function(){q?W.emit("rejectionHandled",e):oe(Y,e,t.value)}))},le=function(e,t,n,r){return function(i){e(t,n,i,r)}},ue=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=J,ie(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw H("Promise can't be resolved itself");var i=re(n);i?S((function(){var r={done:!1};try{i.call(n,le(fe,e,r,t),le(ue,e,r,t))}catch(o){ue(e,r,o,t)}})):(t.value=n,t.state=Q,ie(e,t,!1))}catch(o){ue(e,{done:!1},o,t)}}};te&&(F=function(e){b(this,F,M),g(e),r.call(this);var t=D(this);try{e(le(fe,this,t),le(ue,this,t))}catch(n){ue(this,t,n)}},r=function(e){P(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=p(F.prototype,{then:function(e,t){var n=U(this),r=V(w(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?W.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=le(fe,e,t),this.reject=le(ue,e,t)},j.f=V=function(e){return e===F||e===o?new i(e):G(e)},c||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(F,z.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:F}),h(F,M,!1,!0),m(M),o=u(M),s({target:M,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:c||te},{resolve:function(e){return C(c&&this===o?F:this,e)}}),s({target:M,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,o=A((function(){var n=g(t.resolve),o=[],a=0,s=1;x(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=A((function(){var i=g(t.resolve);x(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e766:function(e,t,n){},e893:function(e,t,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},ed6d:function(e,t,n){var r=n("4a4b");function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}e.exports=i},ef11:function(e,t,n){"use strict";n("9d41")},f069:function(e,t,n){"use strict";var r=n("1c0b"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},f183:function(e,t,n){var r=n("d012"),i=n("861d"),o=n("5135"),a=n("9bf2").f,s=n("90e3"),c=n("bb2f"),l=s("meta"),u=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},p=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,l)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[l].objectID},h=function(e,t){if(!o(e,l)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[l].weakData},m=function(e){return c&&v.REQUIRED&&f(e)&&!o(e,l)&&d(e),e},v=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:m};r[l]=!0},f5df:function(e,t,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f7a0:function(e,t,n){(function(e){var r,i,o;n("c975"),n("fb6a"),n("b0c0"),n("ac1f"),n("466d");var a=n("7037");(function(s){"object"==a(t)&&"object"==a(e)?s(n("366b")):(i=[n("366b")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})((function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,s=n.statementIndent,c=n.jsonld,l=n.json||c,u=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){var t,n=!1,r=!1;while(null!=(t=e.next())){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return v("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):Ze(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=O,O(e,t);if("#"==n)return e.skipToEnd(),v("error","error");if(p.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,i=!1;if(c&&"@"==t.peek()&&t.match(h))return n.tokenize=g,v("jsonld-keyword","meta");while(null!=(r=t.next())){if(r==e&&!i)break;i=!i&&"\\"==r}return i||(n.tokenize=g),v("string","string")}}function y(e,t){var n,r=!1;while(n=e.next()){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return v("comment","comment")}function O(e,t){var n,r=!1;while(null!=(n=e.next())){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}var x="([{}])";function E(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),c=x.indexOf(s);if(c>=0&&c<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(c>=3&&c<6)++i;else if(f.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function S(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function C(e,t,n,r,i){var o=e.cc;_.state=e,_.stream=i,_.marked=null,_.cc=o,_.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);while(1){var a=o.length?o.pop():l?G:z;if(a(n,r)){while(o.length&&o[o.length-1].lex)o.pop()();return _.marked?_.marked:"variable"==n&&S(e,r)?"variable-2":t}}}var _={state:null,column:null,marked:null,cc:null};function j(){for(var e=arguments.length-1;e>=0;e--)_.cc.push(arguments[e])}function A(){return j.apply(null,arguments),!0}function k(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function L(e){var t=_.state;if(_.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=R(e,t.context);if(null!=r)return void(t.context=r)}else if(!k(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!k(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}function R(e,t){if(t){if(t.block){var n=R(e,t.prev);return n?n==t.prev?t:new I(n,t.vars,!0):null}return k(e,t.vars)?t:new I(t.prev,new M(e,t.vars),!1)}return null}function N(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function I(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}var D=new M("this",new M("arguments",null));function P(){_.state.context=new I(_.state.context,_.state.localVars,!1),_.state.localVars=D}function U(){_.state.context=new I(_.state.context,_.state.localVars,!0),_.state.localVars=null}function F(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}function H(e,t){var n=function(){var n=_.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,_.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function B(){var e=_.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(e){function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?j():A(t)}return t}function z(e,t){return"var"==e?A(H("vardef",t),Te,W(";"),B):"keyword a"==e?A(H("form"),$,z,B):"keyword b"==e?A(H("form"),z,B):"keyword d"==e?_.stream.match(/^\s*$/,!1)?A():A(H("stat"),Y,W(";"),B):"debugger"==e?A(W(";")):"{"==e?A(H("}"),U,de,B,F):";"==e?A():"if"==e?("else"==_.state.lexical.info&&_.state.cc[_.state.cc.length-1]==B&&_.state.cc.pop()(),A(H("form"),$,z,B,Ae)):"function"==e?A(Me):"for"==e?A(H("form"),ke,z,B):"class"==e||u&&"interface"==t?(_.marked="keyword",A(H("form"),Ue,B)):"variable"==e?u&&"declare"==t?(_.marked="keyword",A(z)):u&&("module"==t||"enum"==t||"type"==t)&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword","enum"==t?A(Xe):"type"==t?A(ve,W("operator"),ve,W(";")):A(H("form"),Se,W("{"),H("}"),de,B,B)):u&&"namespace"==t?(_.marked="keyword",A(H("form"),G,de,B)):u&&"abstract"==t?(_.marked="keyword",A(z)):A(H("stat"),oe):"switch"==e?A(H("form"),$,W("{"),H("}","switch"),U,de,B,B,F):"case"==e?A(G,W(":")):"default"==e?A(W(":")):"catch"==e?A(H("form"),P,V,z,B,F):"export"==e?A(H("stat"),We,B):"import"==e?A(H("stat"),Ve,B):"async"==e?A(z):"@"==t?A(G,z):j(H("stat"),G,W(";"),B)}function V(e){if("("==e)return A(De,W(")"))}function G(e,t){return K(e,t,!1)}function q(e,t){return K(e,t,!0)}function $(e){return"("!=e?j():A(H(")"),G,W(")"),B)}function K(e,t,n){if(_.state.fatArrowAt==_.stream.start){var r=n?te:ee;if("("==e)return A(P,H(")"),ue(De,")"),B,W("=>"),r,F);if("variable"==e)return j(P,Se,W("=>"),r,F)}var i=n?Q:X;return w.hasOwnProperty(e)?A(i):"function"==e?A(Me,i):"class"==e||u&&"interface"==t?(_.marked="keyword",A(H("form"),Pe,B)):"keyword c"==e||"async"==e?A(n?q:G):"("==e?A(H(")"),Y,W(")"),B,i):"operator"==e||"spread"==e?A(n?q:G):"["==e?A(H("]"),Ye,B,i):"{"==e?fe(se,"}",null,i):"quasi"==e?j(J,i):"new"==e?A(ne(n)):"import"==e?A(G):A()}function Y(e){return e.match(/[;\}\)\],]/)?j():j(G)}function X(e,t){return","==e?A(G):Q(e,t,!1)}function Q(e,t,n){var r=0==n?X:Q,i=0==n?G:q;return"=>"==e?A(P,n?te:ee,F):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?A(r):u&&"<"==t&&_.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?A(H(">"),ue(ve,">"),B,r):"?"==t?A(G,W(":"),i):A(i):"quasi"==e?j(J,r):";"!=e?"("==e?fe(q,")","call",r):"."==e?A(ae,r):"["==e?A(H("]"),Y,W("]"),B,r):u&&"as"==t?(_.marked="keyword",A(ve,r)):"regexp"==e?(_.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),A(i)):void 0:void 0}function J(e,t){return"quasi"!=e?j():"${"!=t.slice(t.length-2)?A(J):A(G,Z)}function Z(e){if("}"==e)return _.marked="string-2",_.state.tokenize=O,A(J)}function ee(e){return E(_.stream,_.state),j("{"==e?z:G)}function te(e){return E(_.stream,_.state),j("{"==e?z:q)}function ne(e){return function(t){return"."==t?A(e?ie:re):"variable"==t&&u?A(xe,e?Q:X):j(e?q:G)}}function re(e,t){if("target"==t)return _.marked="keyword",A(X)}function ie(e,t){if("target"==t)return _.marked="keyword",A(Q)}function oe(e){return":"==e?A(B,z):j(X,W(";"),B)}function ae(e){if("variable"==e)return _.marked="property",A()}function se(e,t){return"async"==e?(_.marked="property",A(se)):"variable"==e||"keyword"==_.style?(_.marked="property","get"==t||"set"==t?A(ce):(u&&_.state.fatArrowAt==_.stream.start&&(n=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+n[0].length),A(le))):"number"==e||"string"==e?(_.marked=c?"property":_.style+" property",A(le)):"jsonld-keyword"==e?A(le):u&&N(t)?(_.marked="keyword",A(se)):"["==e?A(G,pe,W("]"),le):"spread"==e?A(q,le):"*"==t?(_.marked="keyword",A(se)):":"==e?j(le):void 0;var n}function ce(e){return"variable"!=e?j(le):(_.marked="property",A(Me))}function le(e){return":"==e?A(q):"("==e?j(Me):void 0}function ue(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=_.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A((function(n,r){return n==t||r==t?j():j(e)}),r)}return i==t||o==t?A():A(W(t))}return function(n,i){return n==t||i==t?A():j(e,r)}}function fe(e,t,n){for(var r=3;r<arguments.length;r++)_.cc.push(arguments[r]);return A(H(t,n),ue(e,t),B)}function de(e){return"}"==e?A():j(z,de)}function pe(e,t){if(u){if(":"==e)return A(ve);if("?"==t)return A(pe)}}function he(e){if(u&&":"==e)return _.stream.match(/^\s*\w+\s+is\b/,!1)?A(G,me,ve):A(ve)}function me(e,t){if("is"==t)return _.marked="keyword",A()}function ve(e,t){return"keyof"==t||"typeof"==t?(_.marked="keyword",A("keyof"==t?ve:q)):"variable"==e||"void"==t?(_.marked="type",A(Oe)):"string"==e||"number"==e||"atom"==e?A(Oe):"["==e?A(H("]"),ue(ve,"]",","),B,Oe):"{"==e?A(H("}"),ue(be,"}",",;"),B,Oe):"("==e?A(ue(ye,")"),ge):"<"==e?A(ue(ve,">"),ve):void 0}function ge(e){if("=>"==e)return A(ve)}function be(e,t){return"variable"==e||"keyword"==_.style?(_.marked="property",A(be)):"?"==t?A(be):":"==e?A(ve):"["==e?A(G,pe,W("]"),be):void 0}function ye(e,t){return"variable"==e&&_.stream.match(/^\s*[?:]/,!1)||"?"==t?A(ye):":"==e?A(ve):j(ve)}function Oe(e,t){return"<"==t?A(H(">"),ue(ve,">"),B,Oe):"|"==t||"."==e||"&"==t?A(ve):"["==e?A(W("]"),Oe):"extends"==t||"implements"==t?(_.marked="keyword",A(ve)):void 0}function xe(e,t){if("<"==t)return A(H(">"),ue(ve,">"),B,Oe)}function Ee(){return j(ve,we)}function we(e,t){if("="==t)return A(ve)}function Te(e,t){return"enum"==t?(_.marked="keyword",A(Xe)):j(Se,pe,_e,je)}function Se(e,t){return u&&N(t)?(_.marked="keyword",A(Se)):"variable"==e?(L(t),A()):"spread"==e?A(Se):"["==e?fe(Se,"]"):"{"==e?fe(Ce,"}"):void 0}function Ce(e,t){return"variable"!=e||_.stream.match(/^\s*:/,!1)?("variable"==e&&(_.marked="property"),"spread"==e?A(Se):"}"==e?j():A(W(":"),Se,_e)):(L(t),A(_e))}function _e(e,t){if("="==t)return A(q)}function je(e){if(","==e)return A(Te)}function Ae(e,t){if("keyword b"==e&&"else"==t)return A(H("form","else"),z,B)}function ke(e,t){return"await"==t?A(ke):"("==e?A(H(")"),Le,W(")"),B):void 0}function Le(e){return"var"==e?A(Te,W(";"),Ne):";"==e?A(Ne):"variable"==e?A(Re):j(G,W(";"),Ne)}function Re(e,t){return"in"==t||"of"==t?(_.marked="keyword",A(G)):A(X,Ne)}function Ne(e,t){return";"==e?A(Ie):"in"==t||"of"==t?(_.marked="keyword",A(G)):j(G,W(";"),Ie)}function Ie(e){")"!=e&&A(G)}function Me(e,t){return"*"==t?(_.marked="keyword",A(Me)):"variable"==e?(L(t),A(Me)):"("==e?A(P,H(")"),ue(De,")"),B,he,z,F):u&&"<"==t?A(H(">"),ue(Ee,">"),B,Me):void 0}function De(e,t){return"@"==t&&A(G,De),"spread"==e?A(De):u&&N(t)?(_.marked="keyword",A(De)):j(Se,pe,_e)}function Pe(e,t){return"variable"==e?Ue(e,t):Fe(e,t)}function Ue(e,t){if("variable"==e)return L(t),A(Fe)}function Fe(e,t){return"<"==t?A(H(">"),ue(Ee,">"),B,Fe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(_.marked="keyword"),A(u?ve:G,Fe)):"{"==e?A(H("}"),He,B):void 0}function He(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&N(t))&&_.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(_.marked="keyword",A(He)):"variable"==e||"keyword"==_.style?(_.marked="property",A(u?Be:Me,He)):"["==e?A(G,pe,W("]"),u?Be:Me,He):"*"==t?(_.marked="keyword",A(He)):";"==e?A(He):"}"==e?A():"@"==t?A(G,He):void 0}function Be(e,t){return"?"==t?A(Be):":"==e?A(ve,_e):"="==t?A(q):j(Me)}function We(e,t){return"*"==t?(_.marked="keyword",A(Ke,W(";"))):"default"==t?(_.marked="keyword",A(G,W(";"))):"{"==e?A(ue(ze,"}"),Ke,W(";")):j(z)}function ze(e,t){return"as"==t?(_.marked="keyword",A(W("variable"))):"variable"==e?j(q,ze):void 0}function Ve(e){return"string"==e?A():"("==e?j(G):j(Ge,qe,Ke)}function Ge(e,t){return"{"==e?fe(Ge,"}"):("variable"==e&&L(t),"*"==t&&(_.marked="keyword"),A($e))}function qe(e){if(","==e)return A(Ge,qe)}function $e(e,t){if("as"==t)return _.marked="keyword",A(Ge)}function Ke(e,t){if("from"==t)return _.marked="keyword",A(G)}function Ye(e){return"]"==e?A():j(ue(q,"]"))}function Xe(){return j(H("form"),Se,W("{"),H("}"),ue(Qe,"}"),B,B)}function Qe(){return j(Se,_e)}function Je(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ze(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return F.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new I(null,null,!1),indented:e||0};return n.globalVars&&"object"==a(n.globalVars)&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),E(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",C(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,a=r&&r.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==B)c=c.prev;else if(u!=Ae)break}while(("stat"==c.type||"form"==c.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==X||i==Q)&&!/^[,\.=+\-*:?[\(]/.test(r)))c=c.prev;s&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var f=c.type,d=a==f;return"vardef"==f?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==f&&"{"==a?c.indented:"form"==f?c.indented+o:"stat"==f?c.indented+(Je(t,r)?s||o:0):"switch"!=c.info||d||0==n.doubleIndentSwitch?c.align?c.column+(d?0:1):c.indented+(d?0:o):c.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:c,jsonMode:l,expressionAllowed:Ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=G&&t!=q||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))}).call(this,n("62e4")(e))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),c=n("fc6a"),l=n("8418"),u=n("b622"),f=n("1dde"),d=n("ae40"),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),m=u("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,u,f=c(this),d=s(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[m],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(f,p,h);for(r=new(void 0===n?Array:n)(g(h-p,0)),u=0;p<h;p++,u++)p in f&&l(r,u,f[p]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise}});
//# sourceMappingURL=index.js.map</script>